PDA

View Full Version : All about .js and .css


fxdigi-cash
10-06-2013, 09:40 AM
Hi mates,

I'm having hard time trying to understand what benefit of having plenty of the external .css and .js that decrease the vb performance and slow down the page load.

I don't understand why there are many of these .css and .js

All I see at vb.org is one css file at forumhome and 2 css files at showthread. Also there are 6 .js at showthread as at forumhome is 6 .js

now when I compare mine with vb.org, I notice that I have bigger number of these: for example, at showthread I have 29 .js and 17 .css!!! why is that??

The vb4.x.x default skin without any plugin has also many .css and .js, are they all necessary??

I want to know which is one is important and which one is not!! This way I can remove unnecessary ones and reduce the load on my vb board...

also, If they are all necessary, then I want to ask, is there a good way to combine them without causing any issue say conflict between them??

All comments are welcome,

final kaoss
10-07-2013, 06:23 PM
Here is a tool that you can try to combine your css & js into as many minimal requests as possible.
http://archive.msdn.microsoft.com/HttpCombiner
I haven't tried it so be sure you make a backup of some kind before you begin trying this tool out.
Another tool you can try that does the same thing:
https://code.google.com/p/gzipit/

fxdigi-cash
10-08-2013, 09:35 PM
Here is a tool that you can try to combine your css & js into as many minimal requests as possible.
http://archive.msdn.microsoft.com/HttpCombiner
I haven't tried it so be sure you make a backup of some kind before you begin trying this tool out.
Another tool you can try that does the same thing:
https://code.google.com/p/gzipit/

Thanks@final kaoss for the great help.

I looked into both tools you provided links to, and found that the 2nd one is better in some ways except that it is not used before here in the community...

I'm just wondering how the procedure to use it!!

can you illustrate with a simple example, please?

Thanks

final kaoss
10-09-2013, 11:44 AM
Sorry but I don't use either.