Menu

A text page on our site ships 1 MB of JavaScript, and 45 per cent of it is the error reporter
📰

A text page on our site ships 1 MB of JavaScript, and 45 per cent of it is the error reporter

DEV Community: nextjs·Daniel Pertu·14 days ago
#6IWWAS0l
#devtonextjs#devto#dev#sentry#chunk
Reading 0:00
15s threshold

Notifio is a desktop app that watches rental search pages, and its marketing site has one page per supported site: notifio.app/alerts/kamernet and fourteen others. These pages are the purest static content we own. They are force-static , their content is a TypeScript array in the same repository, and the only things a visitor can do on them are read and click a link.

Here is what one of them costs:

HTML 56,342 bytes (10,584 over the wire) CSS 39,976 bytes ( 8,348 over the wire) JavaScript 1,007,990 bytes ( 318,056 over the wire)

Enter fullscreen mode

Exit fullscreen mode

Eight script tags, one megabyte of JavaScript, for a page whose interactive surface is a mobile menu button. I have measured a 436-word static page on a sister site that downloads 263 KB and thought that was bad.…

Continue reading — create a free account

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