How to Reorder Magento JavaScript Using Layout XML?

How to Reorder Magento JavaScript Using Layout XML?

Reorder Magento JavaScript Using Layout XML

This post explains how to reorder Magento javascript using layout XML.

If you want to force the load order of Javascript included with the addJs method, the easiest way is to supply a name using the <params>.

You can use the <params> element, with name attribute in it.

Magento will load the Javascript files in alphabetical order based on the name supplied.

Let's jump into the live source code given by the Magento Development Company


    
    



    
    


  • Share on Facebook
  • Share on Twitter
  • Share on LinkedIn

leave a comment