vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   HELLCAT's Realtime Page Compressor (https://vborg.vbsupport.ru/showthread.php?t=106333)

username12 01-28-2006 03:18 PM

Quote:

Originally Posted by Hellcat
JavaScript is kept intact, my GoogleAds are not affected....
Maybe if the ads use HTML comments to determine where they should appear, since those are striped out....

Yes, they use HTML (just an image and link). Any way in a future version to add a tag that tells it to ignore specified areas, or even something I could implement myself now?

DJ XtAzY 01-28-2006 06:43 PM

woot this updated one have a higher percentage now =]

cd1986 01-28-2006 06:55 PM

Thanks for this - just installed and got a healthy 12% compression on my forum home page. :)

Maagic 01-28-2006 07:23 PM

Installed... works great :) 18% or so!

kregger 01-28-2006 08:45 PM

*clicks install*

nevetS 01-28-2006 08:59 PM

Not trying to rain on anyone's parade here, but I have a question.

Doesn't vB support zlib compression out of the box? And wouldn't zlib compression give you this level of compression and more? And wouldn't adding this in addition to zlib compression needlessly increase the server load?

Like I said - not trying to rain on anybody's parade - this seems like a great concept - but I would like an explanation as to why I am wrong if there is one.

I'm not affiliated with this site - and I'm not sure if there's a linking policy here, but you can test the difference in the output by checking your page here: http://www.whatsmyip.org/mod_gzip_test/ it shows the original size, and gzipped size. I'm wondering if anybody who has it installed can report the improved numbers factoring in gzip compression.

I'm just thinking - if your real-world size improvement is closer to 1%, then maybe this isn't as good of an idea. If you aren't using gzip compression, then I expect the results from this plugin would be much more dramatic.

Just some thoughts...

----
This was such an easy install, I thought I'd try it out myself. Here are my results:
Plugin Active: [page compression: 81.58 k/98.58 k (17.24%)]
gzip page reports:
Original Size: 84 K
Gzipped Size: 11 K
Data Savings: 86.9%

With the product disabled:
gzip page reports:
Original Size: 89 K
Gzipped Size: 12 K
Data Savings: 86.52%

I find it strange that the website and the plugin report different page sizes, but it's probably a matter of one of them calculating /1024 versus the other one calculating /1000. The plugin did show improvement, but like I expected, not too much. I don't have an active forum, so I couldn't do this test on a lot of pages. I also have no idea how much this plugin would actually affect server load. Probably not that much, but I imagine it's really a question of webmaster preference as to whether or not this is worth it.

Great plugin though hellcat! And a serious amount of improvement for anyone not using compression already.

Bounce 01-29-2006 12:36 PM

nice one , saving between 10 and 15% depending on the page :squareeyed:

Cheers

beatyourtruck 01-29-2006 01:24 PM

INSTALLED!

Excellent mod and very easy to do! I am saving 9% to 15% depending on the page.

Thanks! 8)

Hellcat 01-29-2006 04:45 PM

Quote:

Originally Posted by username12
Yes, they use HTML (just an image and link). Any way in a future version to add a tag that tells it to ignore specified areas, or even something I could implement myself now?

I'm going to implement a HTML tag exclusion in the next update.
Then you can just put every block you want to leave untouched by the compression between <nocompress> and </nocompress> tags and the compressor will not touch it :)

username12 01-29-2006 07:21 PM

Quote:

Originally Posted by Hellcat
I'm going to implement a HTML tag exclusion in the next update.
Then you can just put every block you want to leave untouched by the compression between <nocompress> and </nocompress> tags and the compressor will not touch it :)

Sounds good. I'll definitely reinstall then.

Hellcat 01-30-2006 06:52 AM

Quote:

Originally Posted by username12
Sounds good. I'll definitely reinstall then.

Since there are no other issues at the moment, there's no need to hold it back -> UPDATED to 1.21 with exclusion support :)

<nocompress>
Some totally
cool HTML
source here
<!-- with comments -->
</nocompress>

^^^^^^^^ blocks like this (between the "nocompress" tag) are now left alone and not touched/changed by the compressor.

tgmorris 01-30-2006 01:44 PM

Quote:

Originally Posted by Hellcat
blocks like this (between the "nocompress" tag) are now left alone and not touched/changed by the compressor.

I'm using this and it's working just fine. Before upgrading to this latest version, does it strip the tags so the resulting code will still validate?

Hellcat 01-30-2006 03:49 PM

Quote:

Originally Posted by tgmorris
I'm using this and it's working just fine. Before upgrading to this latest version, does it strip the tags so the resulting code will still validate?

It does now ;)

Zia 01-30-2006 04:34 PM

Are we going to have any update ??

MissKalunji 01-30-2006 04:36 PM

works way better! great work Hellcat

DarKNull 01-30-2006 05:29 PM

my site doesn't show the source code. can it do any harm to search sites not reading the meta keyword and description.

Zia 01-30-2006 05:38 PM

Quote:

Originally Posted by DarKNull
my site doesn't show the source code. can it do any harm to search sites not reading the meta keyword and description.

strange matter ..u point budy...

Quote:

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html dir="ltr" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <meta name="generator" content="vBulletin 3.5.3" /> <meta name="keywords" content=",Shout Loud here.Chit-chat place, A Members Hangout Place.,Golpo Bangladesh Bangla Forum Game Quiz irc chat music Concert download Politics movies Television Theater Fashion Nature Tourism Travel" /> <meta name="description" content=". Page 5-Shout Loud
we are on 3.5.3....i can see the source code right now?
im soo curious??

Hellcat 01-30-2006 08:53 PM

Quote:

Originally Posted by Zia
Are we going to have any update ??

On what?
The ZIP of this MOD is updated to the very latest version (1.22) that includes the exclusion and the stripping of the exclusion tags for XHTML compliance.

:)


Quote:

Originally Posted by DarKNull
my site doesn't show the source code. can it do any harm to search sites not reading the meta keyword and description.

How does your site not show the source?
The browser somehow has to know what to display :confused:

Zia 01-31-2006 06:02 AM

Quote:

Originally Posted by Hellcat
On what?
The ZIP of this MOD is updated to the very latest version (1.22) that includes the exclusion and the stripping of the exclusion tags for XHTML compliance.

its now saving ~10% in forum home with 24 query...just asking in future release will it compress more?

anotherthing...i dont know its the perfetc place to ask or not...
any way that this hack will convert/cmopess the quote in reply klikable? :cry:

maybe not right place....tho asking.....

thnx

Hellcat 01-31-2006 06:40 AM

Quote:

Originally Posted by Zia
its now saving ~10% in forum home with 24 query...just asking in future release will it compress more?

Well, for the moment it strips away ANYTHING that can be removed safely without breaking the markup of the HTML page.
There are a few more spots where things could get stripped but that would already affect the resulting rendered page (actually that was a bug/problem that got fixed in one of the updates) or at least make it no longer validating as propper XHTML.

So, either we come up with some genius ideas of things that also can be safly removed or (I already thought about this: ) I add some sort of "agressive compression" settings that will cause above mentioned affects.

For now I have no idea how to raise the compression savings....


Quote:

Originally Posted by Zia
anotherthing...i dont know its the perfetc place to ask or not...
any way that this hack will convert/cmopess the quote in reply klikable? :cry:

Hmm, not sure if I'm getting you there.
You want quoted text in a post to be compressed?
For the threadview this is already the case, the edit/reply input box however is left untouched since that would mess up user inputted text....

But maybe I just got you wrong there ;)

bcmedia 01-31-2006 01:34 PM

Excellent Hack!!! :d

Zia 01-31-2006 02:02 PM

thankx hellcat..

hope aggresive compress will work w/o any problem :)
good luck mr.coder.....for ur too kool idea

Daracon 02-02-2006 10:19 AM

Thanks for that nice hack!

[page compression: 38.89 k/44.94 k (13.46%)]

*klicks install*

BitMite 02-03-2006 05:21 PM

INSTALLED

Excellent hack, thanks.

swa 02-03-2006 06:55 PM

awesome hack! thanks!!

TosaInu 02-03-2006 08:51 PM

:jumping:

dimka 02-03-2006 11:57 PM

Very nice hack!

thank you.

sportsoutlaw 02-05-2006 12:48 AM

This works great!

Smiry Kin's 02-05-2006 01:16 AM

Great Dude! this works with the element skin! thanks so much!

[high]* Smiry Kin's Installs
[/high]

on index. i get
[page compression: 61.46 k/68.03 k (9.65%)]

Zia 02-05-2006 04:59 AM

:) Simple a Revulation it s bu HellCat it works like Hell..

Dear HellCat..
its an off.topic...
saving bandwidth there mite be some more way..like changing some CSS or Gzip
i found a topic in other place.....
(im not spaming)

http://www.buildtolearn.com/tutorial...must-read.html

There he mention about gzip.php ..i dont know there any Gzip.php file or not.. in vb folder..i searched a bit...didnt get that..
can u please have a Heavenly Think about it like hell?

[high]* Zia offers Hellcar 1 box chilled bear..for his deep thinking...
[/high]

Thnx

Hellcat 02-05-2006 11:48 AM

vBulletin has a build in option for using gzip compression, no need for a gzip.php or such.

Just go to your AdminCP -> vBulletin Settings and enable GZIP.
This will (ZIP) compress the HTML page, then send it to the browser that will uncompress and display the page.
This way you can save quite some bandwidth on your server, indeed.

This adds some more loadon the server (depending on compression level) and not all browsers support it (in that case the compression in skipped).

Orcun 02-05-2006 03:23 PM

Hi Hellcat,

I think it does not compress the comments that are included in themes.
For example,

I have a comment like that,

<!-- [START HACK='vB Pager'

// vB Phrases

and I can still see it in the code. Deleting those lines shall provide better compression. What u say ?

Is there a way to decide what kind of comments should be removed ? To a way to change compression level ?

I cant see it in the AdminCP options. Just 3 there.

Hellcat 02-05-2006 07:16 PM

To make it compatibel with the AnyMedia BBCode the compressor ignores (leaves) HTML comments that contain a square bracket "[".

Removing those from comments will also get that comment removed from the final output.

(Didn't find a better yet to determine if the comment is AnyMedia)

The "//" comments can (and should) be removed as well, yes.
I'll put that one into the next update :)

Codeman05 02-05-2006 09:40 PM

well I guess from a bandwidth perspective this is potentially worthwhile, but not from a page load time standpoint....in my case anyway.

I am showing a 10-15% compression. However, my page load times go from ~.10-.14s with this disabled, and goes to ~.21-.25s with this hack enabled.

Did anyone else notice this? Or is getting improved performance along with the compression?

Good hack in any case, definately not trying to knock that

Zia 02-06-2006 02:33 AM

Quote:

Originally Posted by Hellcat
vBulletin has a build in option for using gzip compression, no need for a gzip.php or such.
Just go to your AdminCP -> vBulletin Settings and enable GZIP.
This will (ZIP) compress the HTML page, then send it to the browser that will uncompress and display the page.
This way you can save quite some bandwidth on your server, indeed.
This adds some more loadon the server (depending on compression level) and not all browsers support it (in that case the compression in skipped).

Yes Sir..i had it enable ..i set the compression level to 1....i read many place that 1 is the best...not 9...

Thanu Sir..i got reply of my curiousness :)

thnakx

[high]* Zia still waiting for agressive compression :D[/high]

GamerJunk.net 02-09-2006 10:08 PM

[page compression: 32.33 k/36.59 k (11.64%)]
Page generated in 0.76232 seconds with 9 queries (2 queries for uncached templates) [Server Loads: 10.27 11.02 : 9.51]
Uncached templates: page (1)
Uncached templates: userfield_textbox (15)

What does that mean? It's on my "page" template for my Extra Info

Hellcat 02-09-2006 10:20 PM

The uncached templates come most likely from another extension, maybe that extra info thingy.

delds 02-09-2006 11:04 PM

Excellent mod/plugin, good work.

itorrents 02-09-2006 11:51 PM

A must have I say :D thanks for all your work.

BigTrucK72 02-10-2006 04:40 PM

Geezus Hellcat... you really rocked this one. Saving anywhere from low to high 30s @ http://forums.xedge.net

Thanks and keep up the good work!


All times are GMT. The time now is 11:37 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.01474 seconds
  • Memory Usage 1,830KB
  • 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
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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