1

I am -very- unfamiliar with Magento development. I know how to do things via the graphical interface, but editing any code goes completely over my head. I am familiar with HTML and CSS and I can understand PHP and JS, so code isn't that foreign to me.

Anyway, my store loads very slowly. I ran a Pingdom speed test and it looks like scriptaculous is taking a long time to load.

I did some research and it looks like this has to do with the core functionality of Magento, but some people were asking if they need it? I'm not sure if my store would still work without it.

The URL is http://satcogrowlight.com. I have one theme installed and two extensions, one is Bassi slider and another is Dimensional Shipping.

How can I find out if I need Scriptaculous? If I don't need it, how can I disable it?

(Disclaimer: several things are making my website slow and I am looking into the other sources as well)

Thank you!

Edit: upon further research, looks like compressing it might help? How do I do that (if it's even possible)?

Edit: According to the Google PageSpeed tool, "Your page has 25 blocking script resources and 13 blocking CSS resources. This causes a delay in rendering your page. None of the above-the-fold content on your page could be rendered without waiting for the following resources to load. Try to defer or asynchronously load blocking resources, or inline the critical portions of those resources directly in the HTML."

js/prototype/prototype.js js/lib/ccard.js js/prototype/validation.js js/scriptaculous/builder.js js/scriptaculous/effects.js js/scriptaculous/dragdrop.js js/scriptaculous/controls.js js/scriptaculous/slider.js

Again, my question is: do I need Scriptaculous? If I don't need it, how can I disable it?

  • Quick solution that helped a bit: minifying the script. – Tara Dec 19 '14 at 17:26
  • It seems unlikely that a single JS file is taking too long to load. Is any of your content served via CDN? What (if any) caching do you have enabled on your site? Who is hosting your site? How large is your product catalog? These things typically cause Magento "slowness" more than a single JavaScript file. – Rick Buczynski Dec 19 '14 at 23:02
  • Hi Rick, thanks for your response. I don't mean to be rude, but I did say in my question that there are other factors that may be contributing to the slowness that I am already looking into. – Tara Dec 22 '14 at 17:41
  • Got it; no offense taken. So more to your point, scriptaculous will be used anywhere in Magento front AND backend where you see interactive effects like drag & drop, sliding, fades, and zoom. Examples include backend tooltips, validation notifications, and possibly even the "accordion" checkout on a default install. Not to mention that extensions might expect to use scriptaculous for their own stuff. – Rick Buczynski Dec 22 '14 at 18:48
  • If you are working from *nix, you can grep -rn 'Effect.' . on any of the Magento directories to check for use of the effects core. So grep for this and other core components in your code base to see what uses it. I also just realized that Magento leverages the Autocomplete part of scriptaculous which, by removing, would screw that up. – Rick Buczynski Dec 22 '14 at 18:52
2

Your website is indeed taking a very long time to load.

Based on this Pingdom report, the following image is taking more than 4 seconds to load: http://satcogrowlight.com/uploaded-media/sub-banner-2.png

The overall slowness doesn't seem to be caused by Magento or the extensions but instead it seem like the server itself is very slow, especially when even a JPG image takes that much time to load.

You can try to optimize the image and maybe reduce it's size or even use a CDN but with the server being very slow, I doubt that will help much.

You may want to contact your hosting provider to see if they can improve the performance (for example by moving you to another server or switch to a different plan) as otherwise you may want to consider moving to another provider.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.