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?

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.