Issue
We recently deployed download button on Android Chrome which triggers Android's print dialog function.
It takes more than 2-3 seconds for certain android devices to open this dialog. during this time user has no feedback if the button is pressed or if there is system is doing any action. naturally, user taps on the dialog again, then the print dialog gets cued and whole page freezes. if you press itmultiple times during this time then there is a concurrent views popping up.
Steps to reproduce
- use a mid range android phone
- tap on the download button, on fairly medium article
- tap on the button again 2-3 times
- everything freezes
Video of this happening
https://youtu.be/Qc7Z1LJujbc
Note: The video has Obama article in it but I can confirm this is happening even on medium and some small articles
Tested on
Nexus 5
Android 6.0.1
Chrome version 62.0.3202.84
One Plus One
Android 5.1
Chrome version 62.0.3202.84
Proposed solution
- Increase the time the spinner is available until from after we fetch all images T180058: Download all page images for printing, to when the print dialog appears
- Hide the spinner and show the download button after user comes back from the print dialog