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
  #52  
Old 05-06-2011, 11:48 AM
Marvin Hlavac Marvin Hlavac is offline
 
Join Date: Sep 2007
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The next step would be to determine which .js file causes the issue. One by one, place the names of the .js files, which load when you access your thread pages, to the list of Combine It stop words, till the issue goes away. My guess is that the .js file is related to some add-on you have. Let us know.
Reply With Quote
  #53  
Old 05-15-2011, 12:57 AM
SBlueman SBlueman is offline
 
Join Date: Jan 2006
Posts: 717
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How can I find the names of the .js files to test?
Reply With Quote
  #54  
Old 05-15-2011, 08:52 AM
Marvin Hlavac Marvin Hlavac is offline
 
Join Date: Sep 2007
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

One way to find out which .js files load when a page opens is to 1. Open the page in a web browser, 2. View the source code by clicking View > Source on the menu bar of your web browser, and 3. Search (Ctrl+F) the source page for instances of .js
Reply With Quote
  #55  
Old 05-15-2011, 04:05 PM
muratcan25's Avatar
muratcan25 muratcan25 is offline
 
Join Date: May 2009
Location: Turkey
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you
Reply With Quote
  #56  
Old 05-30-2011, 03:33 PM
A.Chakery's Avatar
A.Chakery A.Chakery is offline
 
Join Date: Jul 2007
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

when I enable this plugin, my website doesnt load, any help is appreciated.

Regards...
Reply With Quote
  #57  
Old 05-30-2011, 04:27 PM
A.Chakery's Avatar
A.Chakery A.Chakery is offline
 
Join Date: Jul 2007
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Now I get this :



Quote:
Fatal error: Uncaught exception 'JSMinException' with message 'Unterminated string literal.' in /home/user/public_html/includes/php-min.php:94 Stack trace: #0 /home/user/public_html/includes/php-min.php(235): JSMin->action(1) #1 /home/user/public_html/includes/php-min.php(64): JSMin->min() #2 /home/user/public_html/includes/combineit.php(177): JSMin::minify('<!DOCTYPE html ...') #3 /home/user/public_html/includes/functions.php(5737) : eval()'d code(9): combineJS('<!DOCTYPE html ...') #4 /home/user/public_html/includes/functions.php(5737): eval() #5 /home/user/public_html/index.php(599) : eval()'d code(303): print_output('<!DOCTYPE html ...') #6 /home/user/public_html/index.php(599): eval() #7 /home/user/public_html/vbseo.php(1397): require('/home/user/...') #8 {main} thrown in /home/user/public_html/includes/php-min.php on line 94
Reply With Quote
  #58  
Old 05-30-2011, 04:40 PM
Marvin Hlavac Marvin Hlavac is offline
 
Join Date: Sep 2007
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ali, try to disable the combining of .js (combine just .css). See if that works. If yes, then the next step will be to find out which .js file is causing problems. Likely it will be one of an add-on, or something that doesn't originate from vBulleting itself. You will be able to place such file(s) on the "do not combine" list.
Reply With Quote
  #59  
Old 05-30-2011, 07:24 PM
A.Chakery's Avatar
A.Chakery A.Chakery is offline
 
Join Date: Jul 2007
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

oh, thanks for the tip marvin, I am gonna go for it.

regards.
Reply With Quote
  #60  
Old 06-08-2011, 03:40 PM
iask iask is offline
 
Join Date: Jan 2010
Location: Home
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Work for vb 4 ?
Reply With Quote
  #61  
Old 07-04-2011, 02:47 PM
Cyrez Cyrez is offline
 
Join Date: Jan 2004
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

We need this for vb4.. Anything extra we can use to optimize.. we need!
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 11:02 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05104 seconds
  • Memory Usage 2,327KB
  • 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
  • (1)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