vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   General Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=189)
-   -   Improve Web Page Performance (https://vborg.vbsupport.ru/showthread.php?t=223251)

Brandon Sheley 11-04-2009 08:46 PM

Great article Joe, thanks for sharing :)

porcupine73 11-04-2009 11:00 PM

Yes thanks for the article. I hadn't heard of some of these tools that are available. It is interesting to see the suggestions from YSlow. There's a number of things I can fix right away just by using the EXPIRES header information.

I'm pressed between using my current server as my content server hosting the subdomains or separate domains for imgs/css/js/etc., since it several times the bandwidth, storage, and processor power than I am currently using. Or maybe just going with AWS.

porcupine73 11-06-2009 12:02 AM

So I was playing around with YSlow today and made some progress on improvements. Having some issues getting .js and some .css to compress with gzip but this is in Windoze.

I made a quick plug-in and hooked it as the last thing on global_start to swap out some of my images and other content to my subdomain CDN's. Not sure if my approach is correct but it seems to making YSlow happier anyway:

Code:

$oz_process = str_replace('"http://ozscience.com/forums/clientscript/', '"http://cdn8.ozscience.net/clientscript/', $output);
$oz_process = str_replace('"clientscript/', '"http://cdn8.ozscience.net/clientscript/', $oz_process);
// $oz_process = str_replace('"http://ozscience.com/common/', '"http://cdn8.ozscience.net/common/', $oz_process);
$oz_process = str_replace('"http://ozscience.com/forums/images/', '"http://cdn9.ozscience.net/images/', $oz_process);
$output = str_replace('"/forums/images/', '"http://cdn9.ozscience.net/images/', $oz_process);


Scalemotorcars 11-06-2009 12:45 PM

Here's some online JS and CSS compressors using the very popular YUI Compressor.

This one is JS only
http://yui.2clics.net/

This one is both
http://refresh-sf.com/yui/

:up:

abdobasha2004 11-12-2009 12:31 AM

wow
thanks for sharing

porcupine73 11-19-2009 12:56 AM

Just wondering, did you guys serve your static files through Cloudfront, or directly through S3? Thanks.

SoftDux 02-21-2010 11:37 AM

So from this article, is my understanding correct, that I should store all forum images (i.e those in the template) on a different host.

How do I configure vBulletin to automatically store user images (i.e. uploads, attachments, avatars, etc) on a different server automatically?

afx1 03-05-2010 04:24 AM

Quote:

Originally Posted by porcupine73 (Post 1910781)
I made a quick plug-in and hooked it as the last thing on global_start to swap out some of my images and other content to my subdomain CDN's. Not sure if my approach is correct but it seems to making YSlow happier anyway:

i think you meant global_complete. thanks for the tip

PlusVB 04-10-2010 11:39 PM

Quote:

Originally Posted by Scalemotorcars (Post 1910963)
Here's some online JS and CSS compressors using the very popular YUI Compressor.

This one is JS only
http://yui.2clics.net/

This one is both
http://refresh-sf.com/yui/

:up:

There is even offline Compressor for Windows.

http://files.plusvb.com/EYUIC/EYUIC_Pic.png

http://yuilibrary.com/forum/viewtopic.php?f=94&t=91

Nice article BTW :)

Kwikms 05-13-2010 04:07 PM

Quote:

You will need to add EXPIRES header so that the static files are cached - saving you bandwidth and decreasing overall page display time.
How do you set the expire header? What time do you suggest?
Is it like this? x-amz-meta-expires:HTTP date or like this x-amz-meta-expires:10000

What about Cache-Control?


All times are GMT. The time now is 01:07 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.01149 seconds
  • Memory Usage 1,737KB
  • 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
  • (1)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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