Prefetching without wasting data

Back to list2025-07-29
You

Is prefetching links worth it on a content site?

ChatGPT

On hover, yes, and it is nearly free: by the time the click lands the document is often already there. Prefetching everything visible is the version that burns other people's data plan for a marginal gain.

You

Is removing Bootstrap from a five page site worth the effort?

ChatGPT

Usually yes at that size. Grid and flexbox cover the layout, custom properties cover the theming, and you stop shipping 200 KB to style five pages. The part people underestimate is the component behaviour, not the styles: modals and dropdowns have to be rewritten.

You

Switching to dark theme flashes white on load. How do people avoid it?

ChatGPT

Set the theme before first paint with a tiny inline script in the head that reads the stored preference and puts an attribute on the root element. Anything loaded as an external file arrives too late, which is exactly what the flash is showing you.