Menu

Our 76 pages print to 496 sheets of A4, and the plan we recommend is invisible on one of them
📰

Our 76 pages print to 496 sheets of A4, and the plan we recommend is invisible on one of them

DEV Community: css·Daniel Pertu·17 days ago
#QFXyaaHi
#devtocss#devto#dev#fragment#print
Long article (1604 words) — no AI summary yet.
Reading 0:00
15s threshold

Nakodo ships 154,384 bytes of CSS for its 76 public pages. I grepped it for print rules:

$ grep -c '@media print' nak.css 0 $ grep -c '@page' nak.css 0 $ grep -c 'color-adjust' nak.css 0

Enter fullscreen mode

Exit fullscreen mode

Nothing. Which is not because media queries never occurred to us. The same file has 13 blocks for prefers-reduced-motion , 6 for forced-colors and 9 for hover: hover . Somebody thought about vestibular disorders, Windows high contrast mode and touch devices, and nobody thought about paper.

So I printed all 76 pages and measured what comes out.

496 sheets

Page.printToPDF over CDP, A4, 0.4 inch margins, backgrounds on:

76 pages measured total 496 sheets of A4 52 MB of PDF median 7 sheets per page

longest /how-it-works 10 / 9 /guides/instagram-and-tiktok-outreach-templates 9 /glossary 8 /privacy 8 shortest /blog, /alternatives, /tiktokers, /instagrammers 3 each

Enter fullscreen mode

Exit fullscreen mode

Then I did the same run with header and footer removed from the DOM…

Continue reading — create a free account

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