create a separate file for all css and scripts

Posted in: Newspaper
Post count: 22

Is there a way to create a separate file where I can put all the css in one place?

The same ideally would apply for the scripts.

I ask that because when I’m look at the source code of my website, the first 250-300 or so lines are filled just with scripts and stylesheet. I was wondering if that is impacting page load speeds.

Any help is appreciated.

Post count: 9544

Having the code inline actually loads faster than external file as it’s cached with the page and reduces wait time for external file to load before the page to allow it to render.

Post count: 22

Thanks for the heads up, Chris! That was quick.

On the same note, what cache plugin do you recommend?

Cheers!

Post count: 7909

Hi zankkasz,

We recommend now Wp Super Cache(use default settings) as we made some tests and it behaved better than W3TC.

Thanks!

Post count: 22

What settings do you recommend on Wp Super Cache?

Post count: 780

Hi,

this is our settings on some of our servers: http://screencast.com/t/augxxSK6H6

still in the advanced tab : http://screencast.com/t/NKQBI6MvBTIp we generally use manual caching cleaning since we are not posting so often.

Hope this helps 🙂

Post count: 22

Thanks, Radu!

Your recommendation worked wonders! I tried W3tc, Wprocket to no avail. I dont understand why people on this forum complain so much about wpsupercache. My site was having 10s page load speed on pingdom and now it’s under 3s. The only thing I havent managed to setup properly was the cdn function. I am using cloudfront from amazon. Any suggestions?

Post count: 780

Hi,

for a cdn, try out cloudflare… you have to change your main domain DNS to it but once it’s done, you have a lot of flexibility of what it’s cached and what it’s not. If you switch to cloudflare, try to not enable the advanced optimizations… they tend to interfere not only with our theme but with a lot of web apps.

Viewing 8 posts - 1 through 8 (of 8 total)
You must be logged in to reply to this topic.