Menu

My page looked ready after 2 seconds. It worked after 27.
📰

My page looked ready after 2 seconds. It worked after 27.

DEV Community: javascript·Aliasgar Lokhandwala·about 14 hours ago
#pPXo8YTW
#devtojavascript#devto#dev#function#seconds
Long article (1400 words) — no AI summary yet.
Reading 0:00
15s threshold

I run PDFUmbrella , a small website with free PDF tools. I made it because merging two files shouldn't mean uploading your private papers to someone else's server.

Everything on it runs in the browser. This post is about one page of it, which turns photos into a PDF , and about three people who tried to use it on their phones.

One stayed for 82 seconds, tapped 18 times and left. One gave up after 11 seconds and 10 taps. The third tapped 15 times, reloaded the page three times, and then finally got their PDF.

There was no error, because nothing had gone wrong. The page just wasn't working yet.

Looking ready and being ready

The page is prerendered: the HTML is built in advance, so search engines and visitors get the full page straight away. React arrives later and takes over.

Between those two moments there's a big blue "Choose photos" button that does nothing. On a fast connection that gap is too short to notice.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.