View Single Post
  #1  
Old 12 Mar 2017, 19:14
final kaoss final kaoss is offline
 
Join Date: Apr 2006
Combine It - Javascript and CSS optimization - for VB4

http://www.vbulletin.org/forum/showthread.php?t=229530

This would be great to have for vbulletin 4, so I'm putting in a mod request (unpaid). Unfortunately, this mod author hasn't logged in since 2013.

One glaring problem is that it seems to create multiple css files (perhaps one per unique visitor?) in the cache folder. This should be changed to have only one css per template/style to rule them all instead of winding up with thousands of css files. Plus it also seemed to mess up with some css, disfiguring the appearance.

What does it do?

This mod is designed to automatically merge and minify all CSS and Javascript on the board and cache the result. This helps reduce requests to the server and reduces bandwidth usage.

Installation
Upload contents of upload folder to forum
Create a folder named 'cache' in the forum
Make sure the web server has the appropriate permissions to write to the cache folder
Import product-combineit.xml into vBulletin
Edit options under vBulletin options to reflect how you want the mod to act and to activate it

Notes

This may not work with highly customized CSS or Javascript. If the script can't write to the cache folder this mod will not function. If you find problems with the order a particular script is executing in, add it's filename as a stop word and it'll load as usual.

Last edited by final kaoss; 12 Mar 2017 at 20:00.
Reply With Quote