Welcome Guest, Not a member yet? Register   Sign In
Numerous CSS and Scripts Loading in Every View
#24

[eluser]Dregond Rahl[/eluser]
As suggested its best to just deliver the ones you need with a function or array of some sort, another method would be to compress the files and use caching methods more strongly. either case, the first load will be a bit slow but after that everything will work fine.

Although combining CSS or JS files on the fly using PHP would work, it may have some caching issues, such as storing the versions of the files which aren't right for the different pages, missing something here and there. if you make it dynamic, though it would cut down requests it would still need to load the JS and CSS each time, which would cancel things out..and would be a bit pointless.

But if you combine all the code on your own and load it up as a single JS or CSS file with caching and compressed that would cover everything. Only problem would be if there are any overriding attributes in the CSS =/


Messages In This Thread
Numerous CSS and Scripts Loading in Every View - by El Forum - 05-18-2009, 10:51 PM
Numerous CSS and Scripts Loading in Every View - by El Forum - 05-18-2009, 10:57 PM
Numerous CSS and Scripts Loading in Every View - by El Forum - 05-18-2009, 11:33 PM
Numerous CSS and Scripts Loading in Every View - by El Forum - 05-18-2009, 11:44 PM
Numerous CSS and Scripts Loading in Every View - by El Forum - 05-18-2009, 11:55 PM
Numerous CSS and Scripts Loading in Every View - by El Forum - 05-19-2009, 01:39 AM
Numerous CSS and Scripts Loading in Every View - by El Forum - 05-19-2009, 02:13 AM
Numerous CSS and Scripts Loading in Every View - by El Forum - 05-19-2009, 02:35 AM
Numerous CSS and Scripts Loading in Every View - by El Forum - 05-19-2009, 03:13 AM
Numerous CSS and Scripts Loading in Every View - by El Forum - 05-19-2009, 06:46 AM
Numerous CSS and Scripts Loading in Every View - by El Forum - 05-19-2009, 08:08 AM
Numerous CSS and Scripts Loading in Every View - by El Forum - 05-19-2009, 08:13 AM
Numerous CSS and Scripts Loading in Every View - by El Forum - 05-19-2009, 08:19 AM
Numerous CSS and Scripts Loading in Every View - by El Forum - 05-19-2009, 08:29 AM
Numerous CSS and Scripts Loading in Every View - by El Forum - 05-19-2009, 08:50 AM
Numerous CSS and Scripts Loading in Every View - by El Forum - 05-19-2009, 09:01 AM
Numerous CSS and Scripts Loading in Every View - by El Forum - 05-19-2009, 09:07 AM
Numerous CSS and Scripts Loading in Every View - by El Forum - 05-19-2009, 09:23 AM
Numerous CSS and Scripts Loading in Every View - by El Forum - 05-19-2009, 09:28 AM
Numerous CSS and Scripts Loading in Every View - by El Forum - 05-19-2009, 09:34 AM
Numerous CSS and Scripts Loading in Every View - by El Forum - 05-19-2009, 09:37 AM
Numerous CSS and Scripts Loading in Every View - by El Forum - 05-19-2009, 09:40 AM
Numerous CSS and Scripts Loading in Every View - by El Forum - 05-19-2009, 09:43 AM
Numerous CSS and Scripts Loading in Every View - by El Forum - 05-19-2009, 10:49 AM
Numerous CSS and Scripts Loading in Every View - by El Forum - 05-19-2009, 02:06 PM
Numerous CSS and Scripts Loading in Every View - by El Forum - 05-19-2009, 02:21 PM
Numerous CSS and Scripts Loading in Every View - by El Forum - 05-19-2009, 02:26 PM
Numerous CSS and Scripts Loading in Every View - by El Forum - 05-19-2009, 02:29 PM
Numerous CSS and Scripts Loading in Every View - by El Forum - 05-19-2009, 02:33 PM
Numerous CSS and Scripts Loading in Every View - by El Forum - 05-19-2009, 02:40 PM
Numerous CSS and Scripts Loading in Every View - by El Forum - 05-19-2009, 02:41 PM
Numerous CSS and Scripts Loading in Every View - by El Forum - 05-19-2009, 11:10 PM
Numerous CSS and Scripts Loading in Every View - by El Forum - 05-20-2009, 04:30 AM
Numerous CSS and Scripts Loading in Every View - by El Forum - 05-29-2009, 08:07 AM
Numerous CSS and Scripts Loading in Every View - by El Forum - 05-29-2009, 08:47 AM
Numerous CSS and Scripts Loading in Every View - by El Forum - 05-29-2009, 09:26 AM
Numerous CSS and Scripts Loading in Every View - by El Forum - 05-30-2009, 11:22 AM



Theme © iAndrew 2016 - Forum software by © MyBB