Jump to content



Issue Information

  • #000605

  • 0 - None Assigned

  • New

  • 2.4

  • -

Issue Confirmations

  • Yes (0)No (0)
Photo

More web performance - PageSpeed

Posted by Gergely on 04 June 2013 - 07:01 PM

Hi,

I took some test with a live v2.3.3 store static index.html by optimized and non-optimized way. There were 7 different points in pagespeed results. I think would be very usefull if osCommerce v2.4 will use separated sections in the template_top.php due to sort order problems.

I suggest the next modification:

change:
<?php echo $oscTemplate->getBlocks('header_tags'); ?>

to:
<?php echo $oscTemplate->getBlocks('header_tags_ext_css'); ?>
<?php echo $oscTemplate->getBlocks('header_tags_ext_script'); ?>
<?php echo $oscTemplate->getBlocks('header_tags'); ?>

This modification solve the most of module group class names sort order, pagespeed and rendering problems. Most of extended css links and scripts could be handle in cache, gzip and expired headers in htaccess or in other mod.

Thanks @acidvertigo who posted this problem before.

https://developers.google.com/speed/docs/best-practices/rtt?hl=en#PutStylesBeforeScripts