vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   RealTime Template Compressor (https://vborg.vbsupport.ru/showthread.php?t=60352)

Andreas 01-18-2004 08:35 PM

One idea for the JavaScript issues:
Before applying the compression replace all instances of <script> ... </script> with $script[x].
Afterwards run a special compression on the script-snippets (which should just ignore <!-- and -->, or maybe strip them but not the text within), then run the compression on the template (as there are no <!-- or // within JavaScripts now there should be no problems) and finally re-substitue the $script[x] with the script(s).

Zachery 01-18-2004 08:44 PM

is it really so nessary with how vB3 is done?

cirisme 01-18-2004 08:54 PM

You can get information here:

http://leknor.com/code/gziped.php

Simply enable it on your forum then enter your forum's url and you can see what benefit you're getting ;)

Princeton 01-19-2004 12:32 AM

faranth,
yes, it does make a difference ... especially in the long run.
Less bytes = Less bandwidth / faster rendering (client side) / also, makes it harder to read source code (client side)

It's similar to putting entire source code (client side) in one line.
I like KirbyDE's idea - about doing the compression before hand.:up:

cirisme,
two different end results ... not the same thing

Zachery 01-19-2004 12:33 AM

Quote:

Originally Posted by princeton
faranth,
yes, it does make a difference ... especially in the long run.
Less bytes = Less bandwidth / faster rendering (client side) / also, makes it harder to read source code (client side)

It's similar to putting entire source code (client side) in one line.
I like KirbyDE's idea - about doing the compression before hand.:up:

cirisme,
two different end results ... not the same thing

i dont belive its so nessary anymore, with alot of the files stored externally, and with the option to store the CSS externaly. i really dont think its going to improve it as much as it used to

Princeton 01-19-2004 12:56 AM

all you have to do is look at the source code here and you will see a lot of




S P A C E
It's really a personal choice. However, as a web professional, I make sure my customers/friends get maximum results for their money.

ShiningArcanine 01-22-2004 02:04 AM

Quote:

Originally Posted by Logician
ok great, I'll look into it, thx! :)

Wouldn't the parsed templates need to be deleted before the hack will work? I guess this hack will require running a query on the MySQL database to install/uninstall it.

eXtremeTim 01-23-2004 10:29 PM

I used the vb2 version and it worked straight up for me. I have been using it for about a two weeks now with no problems. Then again im running a ported version of the vb2 microstats hack that i brought over a while back.


All times are GMT. The time now is 07:05 AM.

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.01247 seconds
  • Memory Usage 1,728KB
  • 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
  • (2)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
  • (8)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