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?