I made a magento module, and I need to add some custom javascript.
I put the following in my layout file (and it’s working, with my custom js places in /js/):
<default>
<reference name="head">
<action method="addJs"><script>http://code.jquery.com/jquery.min.js</script></action>
<action method="addJs"><script>my_custom_js.js</script></action>
</reference>
</default>
My question is – where is the best place for these files, in /js/jquery/ or in /skin/frontend/default/default/js? If I put it in default/default, how do I reference it from the XML?
If it is required for your module (critical functionality):
If it is required for a theme (UI enhancement):