Web Analytics

Fill the form & Get Installation Support

Smartwave Porto theme shows an error like this in browser console and my page does not load properly

I’m using Smartwave Porto theme for my Magento 2 website. When I load my website for the first time it’s loading properly, but every time I refresh the browser page it will show an error like this in browser console and my page does not load properly:

I just do below changes :

Create a requirejs-config.js in the root of the child theme (you can also do this on root theme if you have not created a child theme) as per Porto child like this:

app/design/frontend/Smartwave/porto_child and add the following code in it:

And also change child theme layout file at:

app/design/frontend/Smartwave/porto_child/Magento_Theme/layout/default_head_blocks.xml

From:

To:

I don’t need the fancybox, So I have turned it off, but if you require it, I guess it should be included in the requirejs as well. If you face the same issue, follow the above steps to solve it.

Are you having any query with your Magento store?
Fill the form below to hire Magento expert(s).
Fill the below form if you have any Magento programming need.





    Recent Articles

    Author Info

    Author Image

    Magento Developer

    Hire S. Gorjia

    Get a Free Quote





      /* second popup */

      Connect With Us