vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Board Optimization - vB4 SuperCharged - Optimises CSS, Javascript and HTML (https://vborg.vbsupport.ru/showthread.php?t=229608)

Darkimmortal 05-22-2010 05:20 PM

Personally I don't notice any increased load, although my forum is rather small

ChopSuey 05-24-2010 03:09 AM

Problem with vMoods still NOT fixed.

Alecsmith 05-25-2010 04:20 AM

New error

An error occurred when saving /home/XXXXXX/public_html/forum/clientscript/vbsc.js and/or /home/XXXXXX/public_html/forum/clientscript/vbsc.js.gz. Ensure these files exist and that PHP has permission to write to them (chmod).

I have not changed anything but when i tried to compress Javascript getting this error even i tried reupload all stuff i have gave CHMOD it was working perfect week ago but suddenly new error.

TeknoSounds 05-25-2010 08:04 AM

I just had this problem after moving my server to a new host.

In your AdminCP, ensure File caching is turned on under Style & Language settings, and ensure that the /clientscript/vbulletin_css folder and everything under it is chmod'd to 777.

ChopSuey 05-25-2010 02:45 PM

Quote:

Originally Posted by Alecsmith (Post 2043001)
New error

An error occurred when saving /home/XXXXXX/public_html/forum/clientscript/vbsc.js and/or /home/XXXXXX/public_html/forum/clientscript/vbsc.js.gz. Ensure these files exist and that PHP has permission to write to them (chmod).

I have not changed anything but when i tried to compress Javascript getting this error even i tried reupload all stuff i have gave CHMOD it was working perfect week ago but suddenly new error.

CHMOD the js and gz file to 777.

TeknoSounds 05-25-2010 03:34 PM

Wow totally read that wrong, had thought he had chmod'd it. Yeah, what Chop said. You need to do what it says in the error.

L2V 06-05-2010 02:26 AM

Great mod! I am still learning a bit of how much it is doing.

One question I have is what setting am I supposed to have that will switch the vB page to downloading the vbsc.gz file instead of the vbsc.js file? There is almost a 200k file size difference between the two and it keeps loading the larger uncompressed file. I have common javascript cache and Google Closure Compiler both set to Yes. Am I doing something wrong or misunderstanding what should be happening?:confused:?

Darkimmortal 06-05-2010 02:32 AM

Quote:

Originally Posted by L2V (Post 2048593)
Great mod! I am still learning a bit of how much it is doing.

One question I have is what setting am I supposed to have that will switch the vB page to downloading the vbsc.gz file instead of the vbsc.js file? There is almost a 200k file size difference between the two and it keeps loading the larger uncompressed file. I have common javascript cache and Google Closure Compiler both set to Yes. Am I doing something wrong or misunderstanding what should be happening?:confused:?

No, the .gz file is for servers that support it (nginx) to serve automatically in place of the .js rather than gzipping the .js file on every request.

If your server is serving the .js without gzipping it then you have it configured wrong ;)

L2V 06-05-2010 07:51 PM

Quote:

Originally Posted by Darkimmortal (Post 2048595)
No, the .gz file is for servers that support it (nginx) to serve automatically in place of the .js rather than gzipping the .js file on every request.

Ah! Thanks!

Would it be worth trying to force my non-nginx web server to pass along the gz file? Where can I manually edit this?

ChopSuey 06-08-2010 04:19 PM

This shouldn't be used when you have Store CSS as Filesheets on.

Strike3ForumsMH 06-10-2010 01:27 AM

I am trying to compress the CSS but get this error:
"Fatal error: Maximum execution time of 30 seconds exceeded in ...vbsc.php on line 384"

I have a lot of styles... Any ideas?

Darkimmortal 06-10-2010 02:23 PM

Edit vbsc.php and put set_time_limit(0); on the line after the opening <?php

Strike3ForumsMH 06-11-2010 10:41 AM

Worked like a charm. Thanks!

Abhik 06-19-2010 10:06 AM

Hi..
Excellent Modification. Installed and Nominated for MOTM.

One Request, can we have the CSS Combiner like we have for Javascript files?

Darkimmortal 06-19-2010 12:56 PM

Quote:

Originally Posted by Abhik (Post 2055771)
Hi..
Excellent Modification. Installed and Nominated for MOTM.

One Request, can we have the CSS Combiner like we have for Javascript files?

It used to do that, but after vB added the '-rollup' css files, the crazy amount of incompatibilities outweighed the decreased benefits. Even on an unmodified forum, including all the CSS at once introduces issues on some pages.

Plus with how inefficient the vBulletin CSS is, it's best to keep it at a minimum on each page.

Abhik 06-19-2010 03:19 PM

I am not sure.. But, can't they be added with <vb:if condition>? Like a extra plugin at {vb:raw template_hook.headinclude_css}

That'll probably require manual removal of the existing calls.

And, what about the ability of adding custom js files?
Like, I have a few modification installed that requires js files to be loaded. A filed to add them manually would be much appreciated.

Darkimmortal 06-19-2010 03:39 PM

You can add them to includes/vbsc_global.php (the $GLOBALS['js_files'] array) - just remember to merge the changes when you go to update vBSC ;)

Abhik 06-19-2010 05:03 PM

?ber cool.. :D
Do I need to change anything in templates so that the js files don't go double called?

BTW, a suggestion.. Can you add a tutorial on how we can install "nginx with ngx_http_gzip_static_module" on dedicated apache servers?

Darkimmortal 06-19-2010 05:31 PM

Quote:

Originally Posted by Abhik (Post 2055924)
?ber cool.. :D
Do I need to change anything in templates so that the js files don't go double called?

You would need to remove/comment out the existing script tags.

Quote:

Originally Posted by Abhik (Post 2055924)
BTW, a suggestion.. Can you add a tutorial on how we can install "nginx with ngx_http_gzip_static_module" on dedicated apache servers?

That's way beyond the scope of this mod. You may want to check these links out:

http://www.vbulletin.com/forum/showt...of-a-new-giant
http://wiki.nginx.org

If you are going to go with nginx, I recommend ditching Apache completely and running PHP through PHP-FPM.

Fungsten 06-19-2010 06:01 PM

When trying to run the System Test an error message comes back saying "vB Optimise is currently offline. Please enable and configure vB Optimise to run a system test."

However the system is online. TIA.

VB 4.0.4

Darkimmortal 06-19-2010 06:38 PM

Quote:

Originally Posted by Fungsten (Post 2055956)
When trying to run the System Test an error message comes back saying "vB Optimise is currently offline. Please enable and configure vB Optimise to run a system test."

However the system is online. TIA.

VB 4.0.4

Wrong mod ;)

Fungsten 06-19-2010 06:46 PM

Quote:

Originally Posted by Darkimmortal (Post 2055974)


Ooops. Sorry. LOL.

coffee 06-19-2010 09:06 PM

Upgraded to vb4.0.4 and it still works :)

TransAmDan 06-20-2010 08:41 AM

Upgraded to VB4.04, all seems to work well. However have lost my sections on VBCMS, the Section box appears but no list of section. If I disable this plug in the sections are populated again. This on the live site, not in admin.

Abhik 06-20-2010 10:28 AM

Another Question :)
How can I send the gzipped file (vbsc.js.gz only) to the user agent instead of that uncompressed js file?

Darkimmortal 06-20-2010 01:54 PM

Quote:

Originally Posted by TransAmDan (Post 2056237)
Upgraded to VB4.04, all seems to work well. However have lost my sections on VBCMS, the Section box appears but no list of section. If I disable this plug in the sections are populated again. This on the live site, not in admin.

Will look into that

Quote:

Originally Posted by Abhik (Post 2056275)
Another Question :)
How can I send the gzipped file (vbsc.js.gz only) to the user agent instead of that uncompressed js file?

Your server should take care of gzipping the file if it is configured correctly.

cosy 06-20-2010 05:37 PM

pagespeed tell me this
Quote:

Compressing /clientscript/vbsc.js could save 205.3KiB (75% reduction)

Darkimmortal 06-20-2010 07:04 PM

<a href="http://lmgtfy.com/?q=apache+gzip" target="_blank">http://lmgtfy.com/?q=apache+gzip</a>

Ocean-Wonders 06-21-2010 05:03 PM

Just installed it and I have to say I'm impressed so far, can't find any bugs and the forum is much quicker.

Great Mod, thanks.

sHORTYWZ 06-22-2010 12:24 AM

Is anyone else having issues with this and 4.0.4? I was getting numerous complaints of styling issues (CSS related) until I disabled this mod.

Was having no issues until 4.0.4 and I did try recreating/recompressing the CSS after the upgrade... ideas?

Skyrider 06-22-2010 01:05 AM

Quote:

Originally Posted by sHORTYWZ (Post 2057195)
Is anyone else having issues with this and 4.0.4? I was getting numerous complaints of styling issues (CSS related) until I disabled this mod.

Was having no issues until 4.0.4 and I did try recreating/recompressing the CSS after the upgrade... ideas?

Seems every vBulletin upgrade breaks this plugin. I guess it has to be updated again.

TransAmDan 06-22-2010 08:26 AM

Quote:

Originally Posted by TransAmDan (Post 2056237)
Upgraded to VB4.04, all seems to work well. However have lost my sections on VBCMS, the Section box appears but no list of section. If I disable this plug in the sections are populated again. This on the live site, not in admin.

I found if i disable this:-
"Enable Javascript Optimiser
Intelligently defers Javascript loading for a huge speed boost. Incompatible with a large number of mods, but very highly recommended if it works for you."

This is enabled by default. With this enabled I loose the section menu, in CMS. Looking at the html page served, the javascript looks identical to between working and not working.

Ocean-Wonders 06-22-2010 10:37 AM

I'm having problems with the log in area of the site now, the user can put in there user name but not there password. I disabled this mod and it works again.

Any pointers ??

Big-Pete 06-24-2010 08:09 AM

Quote:

Originally Posted by TransAmDan (Post 2057335)
I found if i disable this:-
"Enable Javascript Optimiser
Intelligently defers Javascript loading for a huge speed boost. Incompatible with a large number of mods, but very highly recommended if it works for you."

This is enabled by default. With this enabled I loose the section menu, in CMS. Looking at the html page served, the javascript looks identical to between working and not working.


I had the same problem, I opened a support ticket at VB.com and they found that this plugin was the cause, I was told
Quote:

It was the vB4 Supercharged plugin - it was making an extra Javascript call which was doing something to block the Menu (as it's Javascript enhanced).
If I leave the Javascript optimiser off (as you have aswell) then the CMS Sections widget shows ok..

Abhik 06-30-2010 11:43 AM

Buddy..
Are you going to upgrade this to combine CSS files as well?
I can see some query strings after the css files after upgrading to vb 4.0.4

Setting up expiry header for CSS and JS files within options page will be a great addition too.

Darkimmortal 06-30-2010 03:06 PM

Quote:

Originally Posted by Abhik (Post 2062197)
Buddy..
Are you going to upgrade this to combine CSS files as well?
I can see some query strings after the css files after upgrading to vb 4.0.4

The query strings are likely just the last modification timestamps and will have no effect on caching. Also combining the CSS doesn't work - many of the CSS files are mutually exclusive (just another part of vB4's poor design).

Quote:

Originally Posted by Abhik (Post 2062197)
Setting up expiry header for CSS and JS files within options page will be a great addition too.

That's for your server to handle though ;)

TheBish 07-01-2010 02:49 AM

Quote:

Originally Posted by sHORTYWZ (Post 2057195)
Is anyone else having issues with this and 4.0.4? I was getting numerous complaints of styling issues (CSS related) until I disabled this mod.

Was having no issues until 4.0.4 and I did try recreating/recompressing the CSS after the upgrade... ideas?

Yes my Section widget disappeared on me. That is the only thing I noticed though.

MarkJW 07-07-2010 01:48 AM

Quick question:

When compressing JS with Google CC enabled, the compression status page hangs (never completes). JS compression works fine with Google CC disabled. Is there something I should change on my Debian + Litespeed powered server to get Google CC to work?

appsfinder 07-09-2010 06:52 AM

need little help
run the Compress Javascript under vB4
how do this i dont see the option in vb4 supercharged

TeknoSounds 07-09-2010 07:52 AM

Quote:

Originally Posted by appsfinder (Post 2066698)
need little help
run the Compress Javascript under vB4
how do this i dont see the option in vb4 supercharged

In your AdminCP, scroll the menu bar to the left allllllll the way to the bottom, theres a dropdown menu there for SuperCharged.


All times are GMT. The time now is 01:31 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.02100 seconds
  • Memory Usage 1,835KB
  • 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
  • (19)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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