Jump to content

Gzip compression


derece

Recommended Posts

Hi, im enable gzip module on my web site, and it work fine for files like that (http://site.com/public/style_css/css_1/ipb_print.css) But script use the biggest JS & CSS files
http://site.com/public/min/index.php?g=js
http://site.com/public/min/index.php?charset=UTF-8&f=public/js/ipb.js,public/js/ips.quickpm.js,public/js/ips.hooks.js,public/js/ips.board.js,cache/lang_cache/2/ipb.lang.js
http://site.com/public/min/index.php?f=public/style_css/css_1/links.css,public/style_css/css_1/calendar_select.css,public/style_css/css_1/ipb_editor.css,public/style_css/css_1/ipb_styles.css,public/style_css/css_1/ipblog.css

and compression does not work for this stuff, its posible to fix this?

thanks

Link to comment
Share on other sites

  • 2 weeks later...

Now web site loading speed is important for google rank, im my google webmaster tools when im check site loading speed (Site performance) i have this results
"On average, pages in your site take 18.0 seconds to load (updated on Apr 3, 2010). This is slower than 100% of sites. These estimates are of low accuracy (fewer than 100 data points). The chart below shows how your site's average page load time has changed over the last few months. For your reference, it also shows the 20th percentile value across all sites, separating slow and fast load times."

next step

Page Speed suggestions


Details: Save up to 271 KB, 2 requests, 1 DNS lookups
Enable gzip compression
Compressing the following resources with gzip could reduce their transfer size by 271 KB:
http://surftime.ru/public/min/index.php?charset=UTF-8&f=public/js/ipb.js,public/js/ips.quickpm.js,public/js/ips.blog.js,public/js/ips.rating.js,public/js/ips.editor.js,cache/

Link to comment
Share on other sites


may i know what will this do exactly?



and why no option for it in admin panel if it is that important!?




It causes the javascript and CSS files to be gzipped (if you use minify).

Minify is a standalone third party script - we can't control it from the ACP. Although, I believe we could ship with gzip enabled possibly (or maybe we did initially, and some had trouble with it, I can't recall now).
Link to comment
Share on other sites


Open up public/min/config.php



Look for



$min_serveOptions['encodeOutput'] =0;



make that



$min_serveOptions['encodeOutput'] =1;





Its twice in there, why? Should i change both?



		/* Turn off URL rewriting and prepend the correct folders */

		$min_serveOptions['rewriteCssUris']   = false;

		$min_serveOptions['minifierOptions']['text/css']['prependRelativePath'] = str_replace( '//', '/', '/' . trim( $folders,'/' ) . '/' . $acpDir . '/skin_cp/' );

		$min_serveOptions['encodeOutput'] = 0;

	}

}


$min_serveOptions['encodeOutput'] = 0;


Link to comment
Share on other sites


Its twice in there, why? Should i change both?



/* Turn off URL rewriting and prepend the correct folders */ $min_serveOptions['rewriteCssUris'] = false; $min_serveOptions['minifierOptions']['text/css']['prependRelativePath'] = str_replace( '//', '/', '/' . trim( $folders,'/' ) . '/' . $acpDir . '/skin_cp/' ); $min_serveOptions['encodeOutput'] = 0; } } $min_serveOptions['encodeOutput'] = 0;















Yes, change both (or at least, change the last one).
Link to comment
Share on other sites

For what it's worth, IP.Board is unlikely to be the problem here - this is what GWT has to say about my forum site:

On average, pages in your site take 1.7 seconds to load (updated on Feb 23, 2010). This is faster than 75% of sites. These estimates are of low accuracy (fewer than 100 data points). The chart below shows how your site's average page load time has changed over the last few months. For your reference, it also shows the 20th percentile value across all sites, separating slow and fast load times.

Link to comment
Share on other sites


How large is your forum?




Pretty small... but IP.Board performs just as well at scale... The IPS site:

On average, pages in your site take 2.3 seconds to load (updated on Apr 27, 2010). This is faster than 62% of sites.



Right now, the forum homepage here is returned in 0.72 seconds.
Link to comment
Share on other sites


For what it's worth, IP.Board is unlikely to be the problem here - this is what GWT has to say about my forum site:




hi, what version of IPB do u use? and what hooks is enabled?
Web server generate output very fast in my web site (0.0932) but when im use
"Page Speed Copyright
Link to comment
Share on other sites

Google says :

Performance overview



On average, pages in your site take 3.9 seconds to load (updated on Apr 28, 2010). This is slower than 58% of sites. These estimates are of high accuracy (more than 1000 data points). The chart below shows how your site's average page load time has changed over the last few months. For your reference, it also shows the 20th percentile value across all sites, separating slow and fast load times.




My front page is made with IP.Content and seems its slow as hell:

Go to URL/foorumi/index 3.1


Go to URL/foorumi/index.php 2.5


Go to URL/ 7.3



IPB says that forum index loads 0.1479 sec, but google says it loads 2,5 seconds :D

http://hoitajat.net/foorumi/
Link to comment
Share on other sites

With IP.Content there are a LOT of variables. Block and page caching being the key - you should let blocks that don't change frequently cache for longer periods of time (same with pages that don't change too frequently). Blocks that DO change frequently can still cache for shorter periods of time (i.e. 30 seconds), giving you a lot of performance boost (imagine a slow loading block, such as "latest posts", only having to rebuild itself once every 30 seconds instead of potentially 10 times per second, depending on your traffic).

Link to comment
Share on other sites

Hey, thanks for tip Brandon! There was stuff i can cache even with "*". It loads much faster now.

Some of those says "Be careful caching plugins - they usually have content intended to be dynamic and specific to the viewer, and usually should not be cached.", like member count plugin wich shows how many users are in. I added 0,5 min cache to that.

Link to comment
Share on other sites

Yes. The welcome block plugin, for example, you wouldn't want to cache (or when I logged in, I'd say the welcome block for whoever happened to trigger it, and guests would see member welcome blocks, etc.). However for something like the online list, even caching it for 30 seconds helps. It means IP.Content won't need to reprocess the data for 30 seconds - you'd be surprised how much benefit that can give your server sometimes.

Link to comment
Share on other sites

Yes, now my main page loads like 0.0484 sec, one socond faster than any of my forum pages :)

I dont use welcome block, but i have created online list, like"We have now xxx members online and we have xxx members registered. Those blocs i put one second cache.

Link to comment
Share on other sites


Open up public/min/config.php



Look for



$min_serveOptions['encodeOutput'] =0;



make that



$min_serveOptions['encodeOutput'] =1;



Edit groupsConfig.php also.




Hmmm, it still says:


Enable gzip compression


Compressing the following resources with gzip could reduce their transfer size by 213 KB:




Link to comment
Share on other sites

Same here: On average, pages in your site take 4.2 seconds to load (updated on May 2, 2010). This is slower than 62% of sites.

But my page generation time is few times faster than this board: 0.0499 sec

Link to comment
Share on other sites

Hi,

Won't mod_deflate do the same without any complications?
I use this combination with expire headers and works like a charm.

http://www.askapache.com/htaccess/apache-speed-compression.html
http://www.askapache.com/htaccess/speed-up-sites-with-htaccess-caching.html

Yahoo have some tips that can help reduce load time:

http://developer.yahoo.com/yslow/help/
http://developer.yahoo.com/performance/rules.html

Link to comment
Share on other sites


Hmmm, it still says:






It's possible you don't have the PHP extensions that minify uses to gzip the content installed.



Hi,



Won't mod_deflate do the same without any complications?


I use this combination with expire headers and works like a charm.



[url="http://www.askapache.com/htaccess/apache-speed-compression.html"]http://www.askapache...ompression.html[/url]


[url="http://www.askapache.com/htaccess/speed-up-sites-with-htaccess-caching.html"]http://www.askapache...ss-caching.html[/url]



Yahoo have some tips that can help reduce load time:



[url="http://developer.yahoo.com/yslow/help/"]http://developer.yahoo.com/yslow/help/[/url]


[url="http://developer.yahoo.com/performance/rules.html"]http://developer.yah...ance/rules.html[/url]




Yes, there's more than one way to skin a cat.
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...