Page 1 of 1

Script Resource

Posted: Wed Oct 14, 2009 7:18 am
by William_firefold
We use Yslow occasionally to check for performance issues. One thing that it brings up is that we have a bunch of scripts that load individually, and it wants us to consolidate them. Seeing as javascript files must load sequentially and not in parallel, I tend to agree.
This seems a bit much:

Code: Select all

<script src="/WebResource.axd?d=BussEGAampZr8p9XfqjpFwBXdMlbg2v9DkeJsIbnE3tVbPYd9ROM_oR7f8F9AauY0&t=633794958040000000" type="text/javascript"></script>
<script src="/ScriptResource.axd?d=KN3CwoDHIDTFrbaNxkme7kCLns61FXickrYKbhfvuP176T3V7VB2ta8POf-SyXmMppdwcqCcaRdX0HJ7BA0wcQ2&t=ffffffff963f5dab" type="text/javascript"></script>
<script src="/WebResource.axd?d=pS4ycSDohVbb85WoX1FdfSUGPZ9v7pEAt-VZzHb_26_1Si6LWqSj3y5lNkc5TLDwz72b24mRNjERHRq0IKOKWA6eodlXi2aHu0ogAy8Ap5BrmUmUK_U8_6Z09ah-VHzO0&t=633794958040000000" type="text/javascript"></script>
<script src="/ScriptResource.axd?d=NWNG_QPkTjURZJiybRMTnudg3GmemhwVB-Eggf9cn_qhEAypz6Jdf6hq6POmwsnKlJcSQKTOZ88B-OAI601AXRPWgM_5DfIGBLJSWfbQUFI1&t=ffffffffd8f4b01e" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
if (typeof(Sys) === 'undefined') throw new Error('ASP.NET Ajax client-side framework failed to load.');
//]]>
</script>

<script src="/ScriptResource.axd?d=NWNG_QPkTjURZJiybRMTnudg3GmemhwVB-Eggf9cn_qhEAypz6Jdf6hq6POmwsnKbKOcFQfeyOixHHZBQ4_9dEyi3Z8JzaQC9eq-07Iq33yQ0JuZIU8IHxglKi5whQf20&t=ffffffffd8f4b01e" type="text/javascript"></script>
<script src="js/WebKitFix.js" type="text/javascript"></script>
<script src="/ScriptResource.axd?d=ySMvsS7WTIQ2K4KM666b0KczPXSP_Ci-h4sV8BlupHsa08qe0osEyeNWse07Cxk1T8QDJyNZENUwjEwkdK31S_QFp4oE9iB9CQUcvlxntpQ1&t=ea1628d" type="text/javascript"></script>

<script src="/ScriptResource.axd?d=ySMvsS7WTIQ2K4KM666b0KczPXSP_Ci-h4sV8BlupHsa08qe0osEyeNWse07Cxk1ZEPWXRwLQQpMHlXb5B1-COWIjHkI6jW1NvBnvJUoch01&t=ea1628d" type="text/javascript"></script>
<script src="/ScriptResource.axd?d=ySMvsS7WTIQ2K4KM666b0KczPXSP_Ci-h4sV8BlupHsa08qe0osEyeNWse07Cxk10LK_EH4Fof5h0IDcEZzmkgx5HAIqvXC6MzWVX0wRdfk1&t=ea1628d" type="text/javascript"></script>
<script src="/ScriptResource.axd?d=ySMvsS7WTIQ2K4KM666b0KczPXSP_Ci-h4sV8BlupHuNfFz2Yvr55r8uWdcexLseTHcMTOpxqIaO2Zlts7bTJHepTwvCH5DtmW9jbq6XZ7M1&t=ea1628d" type="text/javascript"></script>
<script src="/ScriptResource.axd?d=ySMvsS7WTIQ2K4KM666b0KczPXSP_Ci-h4sV8BlupHuNfFz2Yvr55r8uWdcexLseTHcMTOpxqIaO2Zlts7bTJI6cN9jmdLQdFFbCX3Fn2OM1&t=ea1628d" type="text/javascript"></script>
<script src="/ScriptResource.axd?d=ySMvsS7WTIQ2K4KM666b0KczPXSP_Ci-h4sV8BlupHuNfFz2Yvr55r8uWdcexLseTHcMTOpxqIaO2Zlts7bTJCDgHsJABrBeWLeLcdTonWU1&t=ea1628d" type="text/javascript"></script>
<script src="/ScriptResource.axd?d=1nGABoy2mmUR2OUrNWZF2Uq9AhxyVp-LSL1z_A-fOuRK-Ucpcfk7AUbACNcU3Q1_0&t=ea1628d" type="text/javascript"></script>
<script src="/ScriptResource.axd?d=1nGABoy2mmUR2OUrNWZF2ag_ZokDvPotZt7Bb8RcXfweku-Gr3S5ZDUhHoOLksgQbh-qrPzd84sfUEHlM9lurQ2&t=ea1628d" type="text/javascript"></script>
<script src="/ScriptResource.axd?d=1nGABoy2mmUR2OUrNWZF2ZpcmMjYM7dRmGCqxyFFHqZsjQwmDZbDiwQuYKH0u7XSwHhV7oQHc-zj5MYvrKVhkQ2&t=ea1628d" type="text/javascript"></script>
Is there anything we can do to put all these scripts in 1 place so they will load together. Is there any way to remove unnecessary ones? What do they all do?
At the very least, can we put them at the end of scriptlet.master so they load last?

Re: Script Resource

Posted: Thu Oct 15, 2009 4:12 am
by mazhar
Please read discussion in following bug report. You can also apply patch for your 7.0.3 store from this bug report
http://bugs.ablecommerce.com/show_bug.cgi?id=8285

Re: Script Resource

Posted: Fri Oct 16, 2009 5:16 am
by William_firefold
Thanks for the reply, we did have some errors of this type that this will fix.

My main concern here is the speed that the site loads. If you use the FireBug plugin's net panel on our website: www.firefold.com
you may see that it takes a bit of time for all those resources to load. In addition, the first file must finish before the next will begin. I dont know if it holds up the regular html/image information at all but it does take some time, due to there being many separate requests.
Any ideas for that?

Re: Script Resource

Posted: Wed Oct 21, 2009 10:12 am
by William_firefold
What do all these scripts do?