Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Combine It - Javascript and CSS optimization Details »»
Combine It - Javascript and CSS optimization
Version: 1.01, by Menewsha Menewsha is offline
Developer Last Online: Dec 2022 Show Printable Version Email this Page

Category: Board Optimization - Version: 3.8.0 Rating:
Released: 12-03-2009 Last Update: 12-08-2009 Installs: 61
Uses Plugins Auto-Templates
Additional Files Translations Is in Beta Stage  
No support by the author.

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
  1. Upload contents of upload folder to forum
  2. Create a folder named 'cache' in the forum
  3. Make sure the web server has the appropriate permissions to write to the cache folder
  4. Import product-combineit.xml into vBulletin
  5. 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.

Download Now

File Type: zip combineit.zip (58.8 KB, 563 views)

Screenshots

File Type: jpg screenshot.jpg (79.6 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 12-05-2009, 06:31 PM
Menewsha Menewsha is offline
 
Join Date: Sep 2009
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by abdobasha2004 View Post
what permissions?
777?
or 775?
Depends on your web server, but 777 should definitely work without any issues.

Quote:
Originally Posted by abdobasha2004 View Post
how to know it is working?
Look in your page source, you should see a reference to /cache/{somenumber}.css and a .js in the same format. If it's not doing that then there are two possible causes. 1) Some of your js or css files are 401/404 or 2) you haven't set any options for it.
Reply With Quote
  #13  
Old 12-05-2009, 09:18 PM
ishare ishare is offline
 
Join Date: Jun 2006
Location: Stockholm
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

MGC Chat is not loading the conversations and stopped working.
Front Page Slide Show (FPSS) on vB Advanced stopped loading pictures.

It looks great. I hope i can find a way to solve my problems..
And thanks for this great hack..
Reply With Quote
  #14  
Old 12-06-2009, 10:18 AM
mbc100 mbc100 is offline
 
Join Date: Feb 2009
Location: K.S.A
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice mode thanks
Reply With Quote
  #15  
Old 12-07-2009, 09:16 PM
Menewsha Menewsha is offline
 
Join Date: Sep 2009
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ishare View Post
MGC Chat is not loading the conversations and stopped working.
Front Page Slide Show (FPSS) on vB Advanced stopped loading pictures.

It looks great. I hope i can find a way to solve my problems..
And thanks for this great hack..
Put the js filenames for each broken mod into the stopwords field and it should work.
Reply With Quote
  #16  
Old 12-08-2009, 06:54 PM
abdobasha2004's Avatar
abdobasha2004 abdobasha2004 is offline
 
Join Date: Aug 2008
Posts: 541
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Look in your page source, you should see a reference to /cache/{somenumber}.css and a .js in the same format. If it's not doing that then there are two possible causes. 1) Some of your js or css files are 401/404 or 2) you haven't set any options for it.
this did not work
I am using the mod for vb 3.7
and I am caching js and css with htaccess
however there is a file named "112389241.css" in cache folder

but there is no such file in page source !

can you give optimum settings?
Reply With Quote
  #17  
Old 12-08-2009, 08:35 PM
Dave-ahfb Dave-ahfb is offline
 
Join Date: Mar 2002
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This does not work.

As the person above I have just a small css file, missing all of the relevant css, and no call to cache in the source.

Funny thing is all those giving praise I went to your sites and none have it working.
Reply With Quote
  #18  
Old 12-09-2009, 08:28 AM
Audax666 Audax666 is offline
 
Join Date: Jun 2008
Location: Germany
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Also the javascript in the member.php is disabled, so no tabs are displayed. Even if I disable very function in the vb settings. I'm not a developer for that I really can't measure any speed increase.
Felt speed increase=0
But I wish it would, so keep on working on it. :up:
Reply With Quote
  #19  
Old 12-09-2009, 08:46 PM
Menewsha Menewsha is offline
 
Join Date: Sep 2009
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by abdobasha2004 View Post
this did not work
I am using the mod for vb 3.7
and I am caching js and css with htaccess
however there is a file named "112389241.css" in cache folder

but there is no such file in page source !

can you give optimum settings?
The optimal settings are in the screenshot. I'll take a look at your forum a little later and see if I can work out what might be creating an issue.

Quote:
Originally Posted by Dave-ahfb View Post
This does not work.

As the person above I have just a small css file, missing all of the relevant css, and no call to cache in the source.

Funny thing is all those giving praise I went to your sites and none have it working.
If you'd like to show me your settings I'd love to see if I can work out what the issue is for you. It's not exactly meant to be the most novice of mods.

Quote:
Originally Posted by Audax666 View Post
Also the javascript in the member.php is disabled, so no tabs are displayed. Even if I disable very function in the vb settings. I'm not a developer for that I really can't measure any speed increase.
Felt speed increase=0
But I wish it would, so keep on working on it. :up:
The speed increase from the mod is meant to be aimed at first time visitors more so than repeat visitors who would always have those files cached. It also aims to reduce bandwidth on those files in the first place with minifying them. If you'd like to compare you can always install the firefox page speed mod google provides and test it from there. The motivation for this mod was googles recent public expression that they are rewarding pages that load faster, and one of their recommendations is to limit and minify the javascript/css on page, and combine them into fewer files, of which this mod does.

FWIW, I just updated the version to now allow people to only minify CSS in case there are too many Javascript issues.
Reply With Quote
  #20  
Old 12-10-2009, 12:08 AM
digicom's Avatar
digicom digicom is offline
 
Join Date: Apr 2006
Location: England Uk
Posts: 223
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

updated it but still shows as Version 1.0
Reply With Quote
  #21  
Old 12-10-2009, 11:42 PM
abdobasha2004's Avatar
abdobasha2004 abdobasha2004 is offline
 
Join Date: Aug 2008
Posts: 541
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it seems no body have managed to work with it
if it really works it would be gr8
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:35 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05121 seconds
  • Memory Usage 2,339KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete