• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Anyone else just HATE styling?

Page 3 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.
Right, so you compile your JS into a single file. Instead of pulling down 50 files in sequence, you pull down one.
Also, remove the argument. Even with pipelining, that indicates to the browser that the request is stateful. Many JS files works for a lot sites just fine, since they get cached on the first load (worse than optimized into one file, but serviceable, especially if you want to optionally use a CDN).
 
Also, remove the argument. Even with pipelining, that indicates to the browser that the request is stateful. Many JS files works for a lot sites just fine, since they get cached on the first load (worse than optimized into one file, but serviceable, especially if you want to optionally use a CDN).

I agree about removing the argument. A better approach is to dynamically alter the path based on the file contents (e.g. "/statics/<file-hash>/file.ext"), so that the path changes whenever the file changes. With this method, you get caching and you don't run into caching problems when the files change.

I disagree about multiple JS files working. Users will click away from a site if it takes more than 300-500ms to load. The time for that first page load is really important. Consolidating your javascript files can have the effect of decreasing your bounce rate.
 
Last edited:
I disagree about multiple JS files working. Users will click away from a site if it takes more than 300-500ms to load. The time for that first page load is really important. Consolidating your javascript files can have the effect of decreasing your bounce rate.
Many JS files after the content allow the page to be viewed even before "</body>" is received, regardless of how many JS files there are. It works fine on major websites all the time, usually using a popular CDN (I'm sure that's one of the reasons they do it, instead of consolidating). If it takes 150ms o get to that point (probably typical), then the page is well within a 500ms window.
 
Back
Top