Jump to content

Cache CSS to text files? yes/no?

Featured Replies

Posted

Wich is faster?

  • Author

? Doesn't anyone know which setting is faster?

I'm also curious about this.

I assume having it in a text file will be faster because it doesn't have to load it along with the PHP, but OTOH it still has to load it, so is there a definite answer?

Cheers,
Shaun :D

If you cache the CSS to files, then when people first visit your site their browsers will download and store the CSS file in the browser cache. Any subsequent visits to your site without forcing a purge of the browser cache will just re-load the cached version of the CSS from their computers. This saves you in bandwidth consumed. If you don't cache the CSS files, then the full text of the CSS has to be loaded into the page source on every page load.

If you are concerned about saving bandwidth, definitely cache the CSS to text files.

Ah, yes, that makes sense.

So will it speed-up page load times too?

Cheers,
Shaun :thumbsup:

It should, it means there is less data to pull on each page load. I doubt you'll really notice any difference, though.

  • Author

Thanks! Im not concerned about saving bandwidth, i just wanna do everything to speed up things.

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.