Welcome Guest, Not a member yet? Register   Sign In
Load page specific CSS file
#9

[eluser]slowgary[/eluser]
[quote author="elaniobro" date="1266905268"]
Having page specific .css files enables quicker load time and optimization. I know it is small, but size does matter, especially if you are coming through on a mobile phone.[/quote]

This is not necessarily true. Having more requests adds more latency than the size of your CSS files. You'd be better off combining all of your CSS files together. This way, the user would only need to download 1 CSS file, 1 time. If you want to make your CSS files smaller, run them through an optimizer to remove whitespace. Also, remember that data that travels over the internet is broken up into packets, so depending on where the boundary of a packet falls, a larger file may download in the same time as a smaller file.

If you want your site to be faster, cut down on the number of requests. Do not separate your CSS files.


Messages In This Thread
Load page specific CSS file - by El Forum - 02-22-2010, 04:55 PM
Load page specific CSS file - by El Forum - 02-22-2010, 05:03 PM
Load page specific CSS file - by El Forum - 02-22-2010, 05:47 PM
Load page specific CSS file - by El Forum - 02-22-2010, 05:52 PM
Load page specific CSS file - by El Forum - 02-22-2010, 06:01 PM
Load page specific CSS file - by El Forum - 02-22-2010, 06:04 PM
Load page specific CSS file - by El Forum - 02-22-2010, 06:07 PM
Load page specific CSS file - by El Forum - 02-22-2010, 06:10 PM
Load page specific CSS file - by El Forum - 02-22-2010, 06:33 PM



Theme © iAndrew 2016 - Forum software by © MyBB