Decrease Page Load time in OSCommerce

Decrease Page Load time in OSCommerce

Cut Initial Page Loading times approx. 35% in OSCommerce 2.3 and OSC to CSS by letting Google host Jquery.

Measured with Page Speed, a new, unmodified install of OSCommerce 2.3 on a typical DSL connection had initial page loading times of about 8.5 to 9.0 seconds.

By doing nothing more than replacing the references to the main Jquery Libraries with Google API references, 3.5 seconds were whacked off the initial page load time, resulting in 5 to 5.5 second initial page loads.

To replace the Jquery references in OSCommerce 2.3 open:

<code><script type="text/javascript" src="ext/jquery/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="ext/jquery/ui/jquery-ui-1.8.6.min.js"></script></code>


<code><script type="text/javascript" src="<?php echo (isset($_SERVER['HTTPS']) && (strtolower($_SERVER['HTTPS']) == 'on') ? 'https://' : 'http://') . ''; ?>"></script>
<script type="text/javascript" src="<?php echo (isset($_SERVER['HTTPS']) && (strtolower($_SERVER['HTTPS']) == 'on') ? 'https://' : 'http://') . ''; ?>"></script>

To replace the Jquery references in OSC to CSS open:
The references are added like this:

<code>// Define Stylesheet(s) to be used.
<script type="text/javascript" src=" '.(isset($_SERVER['HTTPS']) && (strtolower($_SERVER['HTTPS']) == 'on') ? 'https://' : 'http://') . '"></script>
<script type="text/javascript" src=" '.(isset($_SERVER['HTTPS']) && (strtolower($_SERVER['HTTPS']) == 'on') ? 'https://' : 'http://') . '"></script>';

There are at least three reasons why this works:

  1. Google delivers the two files compressed. These are huge files. OSCommerce 2.3 delivers these files with a combined size of 270.8 kb, Google compresses them to 73.6kb. 270kb is larger than the total size of all the catalog files.
  2. Parallelism: Up to six files at a time can be requested from one server. But since two files are being requested from a second server, Google API, you can download 8 files concurrently.
  3. The visitor to your website might not even have to download them. If your visitor has been to another site anytime within the past year where these very popular files are used, they are probably already downloaded!

Related Posts

12 thoughts on “Decrease Page Load time in OSCommerce

  1. payday loans

    I’d like to thank you for the efforts you have put in writing this site. I really hope to check out the same high-grade blog posts by you in the future as well. In fact, your creative writing abilities has motivated me to get my own, personal blog now

  2. Lillia Blowe

    Hello, Neat post. There is a problem with your web site in web explorer, could test this… IE still is the marketplace chief and a good element of other people will pass over your excellent writing due to this problem.

  3. kore dizileri izle

    Nice a person web site manager good results website submit excellent sharings within this blog site at all times have pleasurable

  4. Deirdre

    Wonderful article admin thank you. I discovered what i used to be in search of here. I will review overall of posts within this time of day

  5. best Life Quotes

    This is the precise Decrease Page Load time in OSCommerce | Web Duos journal for anyone who wants to seek out out most this content. You attention so often its most exhausting to debate with you (not that I real would want…HaHa). You definitely put a new extend on a message thats been inscribed roughly for age. Squeamish object, simply majuscule!

  6. Sanora

    The cοncеpt of your blog is eхtremely freѕh,
    I’m without doubt that the readers who visit your blogs will appreciate your content and thoughts.

  7. Ashli

    Thiѕ is a terгіfic inspіring pоsting.
    Ι reаllу am sіncerely impгessed ωhеn геading yοur offeгings.

    Yоu alwaуs post helpful information.
    Kеep іt up. Keep bloggіng. Really loоκіng fоrwaгd to opening yоur neхt оfferіng.

  8. Free Online Cooking Games

    Decrease Page Load time in OSCommerce | Web Duos I was suggested this blog by my cousin. I’m not sure whether this post is written by him as nobody else know such detailed about my difficulty. You’re incredible! Thanks! your article about Decrease Page Load time in OSCommerce | Web DuosBest Regards Nick

  9. tights

    Greetings! Very helpful adviсе within
    thіs pοst! It’s the little changes which will make the largest changes. Thanks a lot for sharing!

  10. Shoe Lift

    Thiѕ is a trulу inspiring аrtіcle.
    I am alωays truly impгessеd bу your wгitіng.

    Yοu pгοduce uѕеful ideаs.
    Keeρ it up. Keep blοgging. looking forwаrd to seeіng youг neхt blog роst.

  11. Brady

    I needed to thank you for this good read!

    ! I definitely enjoyed every little bit of it.

    I’ve got you bookmarked to check out new things you post…


Leave a Reply

Your email address will not be published. Required fields are marked *