2821 posts
  • Australia
  • Community Moderator
  • Elite Author
  • Author had a Free File of the Month
  • Most Wanted Bounty Winner
  • Author had a File in an Envato Bundle
  • Has been a member for 5-6 years
  • Contributed a Blog Post
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
+10 more
dtbaker Volunteer moderator says

One thing that strikes me with most wp themes is that they do not utilise this sort of system, and thus redundancy and laggg..gg.gg.gggg is very prevalent, because basic site pages are firing 50 million js files and css files that are used in other page templates.

This is a tricky one. Personally I would prefer all WP pages to have the same CSS/JS in the header so that the Minification/Cache plugins work better. This way each page would end up having a single cached/minified CSS and JS file that is identical to all other pages. This way the browser would have to download this file only once for the entire site. If each page had different CSS/JS then the browser would have to cache more than 1 minified file. If that makes sense.

5074 posts
  • Australia
  • Bought between 100 and 499 items
  • Community Superstar
  • Exclusive Author
  • Has been a member for 3-4 years
  • Interviewed on the Envato Notes blog
  • Microlancer Beta Tester
  • Referred between 1 and 9 users
  • Sold between 1 000 and 5 000 dollars
Australia says


One thing that strikes me with most wp themes is that they do not utilise this sort of system, and thus redundancy and laggg..gg.gg.gggg is very prevalent, because basic site pages are firing 50 million js files and css files that are used in other page templates.
This is a tricky one. Personally I would prefer all WP pages to have the same CSS/JS in the header so that the Minification/Cache plugins work better. This way each page would end up having a single cached/minified CSS and JS file that is identical to all other pages. This way the browser would have to download this file only once for the entire site. If each page had different CSS/JS then the browser would have to cache more than 1 minified file. If that makes sense.

Not really, whilst I agree with you in regard to cross page loading.

But on large dynamic sites, it just doesnt make sense to load every “jiblet” of css and js for every single page. Example.

The site I was looking at has over 500kb of js and css loading for his 404 page lol. Which is basically just a h1 and p tag !

Mind you it is painfully slow and I opted not to get it in the end, it was just more trouble than it was worth. I only liked it because of his use of jquery appear and jquery waypoints

by
by
by
by
by
by