Categories

Featured templates

Featured templates

Magento Troubleshooter. Merge JavaScript option issues

Andre Flores August 24, 2015
Rating: 5.0/5. From 2 votes.
Please wait...

Hello! This video tutorial shows how to fix issues which occur after the “Merge JavaScript Files” option is enabled in your Magento store.

Magento Troubleshooter. Merge javascript option issues

The “Merge JavaScript Files” option may improve the site load speed by combining Javascript into fewer files and compressing them.

There are some issues with the scripted elements of the template, such as user menu, categories menu, language and currency switchers etc. that may occur when the “Merge JavaScript Files” option is enabled in your admin panel:

magento_merge_javascript_files_option_issues_1

Let’s learn how to resolve these issues on the example of the menu.

  1. Locate the superfish.js file in the /skin/frontend/tm_themes/themeXXX/js/ directory via FTP/hosting control panel File Manager:

    magento_merge_javascript_files_option_issues_2

  2. Open the file for editing and find the following piece of code:

;(function ($)

Simply add an exclamation mark (!) before the function so it looks as follows:

;!(function ($)

magento_merge_javascript_files_option_issues_3

Do not forget to save the file to see the changes. You may also need to clear Magento cache for the changes to apply.

Navigate to your store front-end and refresh the page. You can see the menu functions properly now.

This is the end of the tutorial, you have learnt how to fix issues which occur after the “Merge JavaScript Files” option is enabled in your Magento store.

Feel free to check the detailed video tutorial below:

Magento Troubleshooter. Merge javascript option issues

Magento Premium Templates
This entry was posted in Magento Tutorials and tagged fix, javascript, Magento, merge, troubleshooter. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket