Reply to comment

Visitor's picture
EllisGL commented on #1

OK my tests.

if(!ob_start('ob_gzhandler'))
 {
    echo 'NO GZ';
    ob_start();
 }
 
echo '<script type="text/javascript">
$(document).ready(fuction() {
});
</script>';
ended up with 93 bytes
 
<?php
if(!ob_start('ob_gzhandler'))
 {
    echo 'NO GZ';
    ob_start();
 }
 
echo '<script type="text/javascript">
$(fuction() {
});
</script>';
Ended up with 77 bytes
 
So you ended up with 16 Bytes worth of savings on this super simple test.

Reply

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd><img>
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <css>, <drupal>, <java>, <javascript>, <mysql>, <php>, <ruby>. The supported tag styles are: <foo>, [foo]. PHP source code can also be enclosed in <?php ... ?> or <% ... %>.
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA

This question is for testing whether you are a human visitor and to prevent automated spam submissions.