1

On our Magento 2 new webstore there is a problem with loading javascript from history (with F5 or new tab). This problem occurs mostly in Microsoft Edge Browser. Sometimes, my code loads fine, but mostly not. If I want it to load as it should, I have to delete browser cache and cookies or CTRL+F5. The code that should load is inside:

<script>
// <![CDATA[
    requirejs([
        'jquery',
        'cycle2',
        'cycle2carousel'
    ], function ($) {
        $(window).on('load', function() {
           //my code
    });
});
// ]]>

I put a debugger point inside, but it never comes to that point. What could be wrong here?

6
  • Your site stills changing? Or sometimes, when loading the browser, you meet this issue? Dec 6, 2016 at 10:56
  • No, the site is online. Sometimes, when loading the browser, but when opening the page from history.
    – Anitr
    Dec 6, 2016 at 11:55
  • The same issue with Chrome and Firefox? The most js scripts did not load or only your custom script above? Dec 6, 2016 at 14:16
  • I can't see the same issue in other browsers, only in Microsoft Edge.
    – Anitr
    Dec 6, 2016 at 14:19
  • The most js scripts did not load or only your custom script above? Dec 6, 2016 at 14:19

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.