3 ms·
Most websites and web apps spend so much time on server side CPU per page load that offloading a few static requests makes next to no difference. The CDN thing
by Neil44 4y ago
Most websites and web apps spend so much time on server side CPU per page load that offloading a few static requests makes next to no difference. The CDN thing is way down the list of changes you can make to improve performance in most cases.
- weird-eye-issue 4y agoNot true especially for CSS and JS required for the page to even render
- Neil44 4y agoServing a static css or js is fractions of a ms in cpu time though, generating a dynamic page is 10’s-100’s of ms
- weird-eye-issue 4y agoWhy are you so concerned with CPU time and not the end user's experience?
- Neil44 4y agoWe are talking about the end user experience in terms of time taken to display the page, of which the largest part for a dynamic page is usually cpu time on the server not minute optimisations of static objects. It's not the lowest hanging fruit.
- weird-eye-issue 4y agoThis just isn't true at all. The amount of time it takes to download, parse, and execute modern JavaScript payloads is usually longer than a page's TTFB. Then there is also the parsing of HTML and CSS and actually painting the page. For "most websites" if cached appropriately then server CPU time is minimal in most cases
- Neil44 4y agoI’m sure we are both right, on different days :)