5 ms·
Everyone recommends to use CDN then lots of sites appear hidden beneath Cloudflare hoping they will load faster on cellphone.
by ungzd 11y ago
Everyone recommends to use CDN then lots of sites appear hidden beneath Cloudflare hoping they will load faster on cellphone.
- oneloop 11y agoCould you expand? I'm going through this right now and it would probably be useful.
- duaneb 11y agoI think he's noting a cdn won't help with low bandwidth on the client end, i.e. assumably cellphone users, which make up a large proportion of the Internet. Only reducing the size of the site would help.
- blakeyrat 11y agoYeah. I think we've all seen sites that use an image CDN to serve up a 4 MB PNG, which ends-up scaled down to 1/3rd size on the page anyway. The CDN might help the ping time of that request, but on a low-bandwidth device, 4 MB is still 4 MB no matter what server it's coming from.
- icebraining 11y agoYeah, though CF does have content optimization features, including one that auto-resizes images to the type of device.
- oneloop 11y agoThat's awesome. Do you have link to docs?
- icebraining 11y agoIt's more a marketing page than documentation: https://www.cloudflare.com/mirage/ https://www.cloudflare.com/mirage/ They have a bunch of similar features: https://www.cloudflare.com/features-optimizer/ https://www.cloudflare.com/features-optimizer/
- nawitus 11y agoWouldn't the CDN'd resource be already cached for most users (if we're talking about the average, often used resource)?
- duaneb 11y agoThe last mile is the limiting factor in this case. A super cached 4mb image still takes a minute to load on a 64 KiB/second connection.
- duaneb 11y agoAugh, I see. I don't understand why a 4 mb image would be likely cached. The problem is mostly custom sites with massive assets, not your copy of jquery that's probably heavily redundant.
- manigandham 11y agoCDN will pretty much always help, regardless of the device, by responding faster to requests. They aren't magic though and still require optimization at some stage to be optimal for everyone. This can be during the development process of some CDNs like CF have front-end optimization settings to reduce images dynamically, inline JS, minify content, etc. Using both dev-time and run-time optimization can greatly help performance.