Menu

Our whole site is 541 phone screens of scrolling, and the shortest marketing page is a third footer
📰

Our whole site is 541 phone screens of scrolling, and the shortest marketing page is a third footer

DEV Community: css·Daniel Pertu·about 22 hours ago
#t1jKqNfU
#devtocss#devto#dev#pages#footer
Reading 0:00
15s threshold

I know how many elements, bytes and headings our site has, because I have counted all of those. I did not know how tall it is. Page height is the one dimension a visitor experiences directly: it is the scrollbar they see before they read a word, and it is the thing that decides whether your closing argument is on screen or four flicks of a thumb away.

So I measured every page in the sitemap at two widths, in a real browser, with the simplest instrument there is:

document . documentElement . scrollHeight // the whole document window . innerHeight // one screen of it

Enter fullscreen mode

Exit fullscreen mode

78 of the 79 URLs, twice: once at 1280x900 and once at 390x844, which is a phone.…

Continue reading — create a free account

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