vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Board Optimization - Combine It - Javascript and CSS optimization (https://vborg.vbsupport.ru/showthread.php?t=229530)

Menewsha 12-03-2009 10:00 PM

Combine It - Javascript and CSS optimization
 
1 Attachment(s)
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.

saadessa 12-04-2009 11:14 PM

thank you alot i need this hack iwas look for like this ..... installed

Menewsha 12-04-2009 11:21 PM

Updated to fix potential vbSEO issue, and to allow the option of not optimizing inline CSS.

If anyone has any suggestions please feel free to post them.

Scalemotorcars 12-04-2009 11:37 PM

Will be looking into this. Could be very handy for heavily modified boards. Thanks.. :up:

AzzidReign 12-05-2009 02:00 AM

Nice! Glad this is not for 4.0 (yet) as I'm going to be on 3.8 for a lil while still!

digicom 12-05-2009 02:02 AM

Installed! thanks for this :up:

euantor 12-05-2009 07:17 AM

Thanks tons :D Going to try it out now.

abdobasha2004 12-05-2009 11:42 AM

woooow
great
nominated + installed

abdobasha2004 12-05-2009 12:03 PM

Quote:

Make sure the web server has the appropriate permissions to write to the cache folder
what permissions?
777?
or 775?

abdobasha2004 12-05-2009 12:20 PM

how to know it is working?

Menewsha 12-05-2009 06:31 PM

Quote:

Originally Posted by abdobasha2004 (Post 1925680)
what permissions?
777?
or 775?

Depends on your web server, but 777 should definitely work without any issues.

Quote:

Originally Posted by abdobasha2004 (Post 1925684)
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.

ishare 12-05-2009 09:18 PM

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..

mbc100 12-06-2009 10:18 AM

nice mode thanks

Menewsha 12-07-2009 09:16 PM

Quote:

Originally Posted by ishare (Post 1925971)
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.

abdobasha2004 12-08-2009 06:54 PM

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?

Dave-ahfb 12-08-2009 08:35 PM

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.

Audax666 12-09-2009 08:28 AM

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:

Menewsha 12-09-2009 08:46 PM

Quote:

Originally Posted by abdobasha2004 (Post 1927376)
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 (Post 1927423)
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 (Post 1927684)
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.

digicom 12-10-2009 12:08 AM

updated it but still shows as Version 1.0

abdobasha2004 12-10-2009 11:42 PM

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

Menewsha 12-11-2009 07:56 PM

For those of you who want to see an example forum www.menewsha.com though CSS is the only one being minified right now while I make some modifications.

abdobasha2004 12-11-2009 08:46 PM

Quote:

For those of you who want to see an example forum www.menewsha.com though CSS is the only one being minified right now while I make some modifications.
so why it is not working for me ?

http://100fm6.com/vb/

Dave-ahfb 12-11-2009 09:55 PM

I thought it was supposed to merge the css as well as minify.

yahooooh 12-25-2009 10:22 PM

any update?

alhindasi 12-28-2009 05:10 AM

installed but not woorking good

we need new update please

alhindasi 12-28-2009 04:00 PM

AJAX not Working Need to be checked and Fixed

Rafa-el 03-12-2010 12:21 PM

vB 3.8.5 support?

Brandon Sheley 03-13-2010 01:39 AM

I'll have to check this one out, looks good

extremeseo 03-15-2010 08:05 AM

What is the recommended setting for
Javascript caching
How long should the javascript be cached for?
300 or 3600 ?

ps2wiz 05-16-2010 03:51 AM

Quote:

Originally Posted by Rafa-el (Post 2002150)
vB 3.8.5 support?

Doesn't seem to work for me.

budlight 07-08-2010 01:48 AM

Quote:

Originally Posted by extremeseo (Post 2003932)
What is the recommended setting for
Javascript caching
How long should the javascript be cached for?
300 or 3600 ?

assuming seconds 3600 is super low that's one hour. How often would your js even change. You'd prob easily be safe with 12-24 hours and possibly even more.

Hellmaster 07-08-2010 03:24 AM

How much is "highly" customized CSS or Javascript?

10 JS mods?
100 JS mods?

budlight 07-10-2010 03:15 PM

just try it man nobody can know till you try it

imedic 07-14-2010 05:47 PM

I have installed it and it works (only with 777 on cache) but fast edit does not work. It sends you to full edit form the first click.

Can this be put as an exclusion in the settings?

It seems there are many problems with posting (bold, smilies ... ) uninstalled for the moment.

EDIT: I will love too have this working on my site as is clear: google wants pages loading fast and aren't we all happy to please google :D

merkaz 07-31-2010 06:51 AM

Great mod . thanks .

merkaz 07-31-2010 07:05 AM

1 / Taps in members profiles not shown .
2/ Quick Reply not working .

webmastersitesi 10-10-2010 02:07 PM

Does it work with 4.0?

snobbytec 11-20-2010 07:31 AM

Installed, but i get an error at forum page

Fatal error: Uncaught exception 'JSMinException' with message 'Unterminated string literal.' in /var/www/vhosts/teccentral.de/httpdocs/forum/includes/php-min.php:94 Stack trace: #0 /var/www/vhosts/teccentral.de/httpdocs/forum/includes/php-min.php(235): JSMin->action(1) #1 /var/www/vhosts/teccentral.de/httpdocs/forum/includes/php-min.php(64): JSMin->min() #2 /var/www/vhosts/teccentral.de/httpdocs/forum/includes/combineit.php(177): JSMin::minify('<!DOCTYPE html ...') #3 /var/www/vhosts/teccentral.de/httpdocs/forum/includes/functions.php(5737) : eval()'d code(96): combineJS('<!DOCTYPE html ...') #4 /var/www/vhosts/teccentral.de/httpdocs/forum/includes/functions.php(5737): eval() #5 /var/www/vhosts/teccentral.de/httpdocs/forum/index.php(597) : eval()'d code(175): print_output('<!DOCTYPE html ...') #6 /var/www/vhosts/teccentral.de/httpdocs/forum/index.php(597): eval() #7 /var/www/vhosts/teccentral.de/httpdocs/forum/vbseo.php(1392): require('/var/www/vhosts...') #8 {main} thrown in /var/www/vhosts/teccentral.de/httpdocs/forum/includes/php-min.php on line 94

what can i do to fix it ?

vBulletin 3.8.4 , vBAdvanced works fine

oddmud 01-11-2011 11:49 PM

Anything like this for v4.1 ?

briansol 02-02-2011 02:32 AM

Quote:

Originally Posted by oddmud (Post 2147776)
Anything like this for v4.1 ?

https://vborg.vbsupport.ru/showthread.php?t=229608


All times are GMT. The time now is 07:09 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.01352 seconds
  • Memory Usage 1,817KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete