• Resolved ninowi

    (@ninowi)


    Hey,

    I would need some help finding the JS script on my site, which results into an error when loading my page with optimized (deferred) JS files.

    The website loads fine with ?ao_noptimize=1 added to my URL..

    All other explorers work fine with your JS optimization.

    Thanks!
    Sebastian

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    Don’t have IE11 myself so can’t test, but what JS error(s) do you see on the browser console when AO JS opt. is active?

    Thread Starter ninowi

    (@ninowi)

    Thanks for the quick reply.
    I found 3 errors in that order when trying to load home:

    SCRIPT438: Object doesn’t support property or method ‘append’
    https://www.vild-shop.com (400,6)

    SCRIPT1002: Syntax error
    https://www.vild-shop.com (1805,123)

    SCRIPT1002: Syntax error
    autoptimize_327e2fe159dd2d6f4aa7fd96d82732ec.js (60,170)

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    OK, that last one

    SCRIPT1002: Syntax error autoptimize_327e2fe159dd2d6f4aa7fd96d82732ec.js (60,170)

    if you click on it, what JavaScript code do you see exactly?

    Thread Starter ninowi

    (@ninowi)

    It highlights the following code:

    return;}}else{var settings=tryParseJson(e.data);if(settings){if(settings.trustboxes){var p=document.createElement(“script”);p.type=”text/javascript”;p.onload=function(){const iFrame=e.source.parent.document.getElementById(‘configuration_iframe’).contentWindow;TrustpilotPreview.init([trustpilot_settings[‘PreviewCssUrl’],trustpilot_settings[‘PreviewWPCssUrl’]],settings,iFrame,e.source);};p.src=trustpilot_settings[‘PreviewScriptUrl’];document.head.appendChild(p);}}

    Thread Starter ninowi

    (@ninowi)

    Seems to be my TrustPilot Plugin. How do I find the name of the JS, which needs to be excluded in the AO settings?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    go to your site with ?ao_noptimize=1 appended to the URL (which disables AO for that request) and do a “view source” of that page. chances are adding just trustpilot to the comma-separated JS opt. exclusion list is enough to fix your woos ??

    Thread Starter ninowi

    (@ninowi)

    Adding trustpilot to the exclusion list solved it.
    Thank you! ??

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    you’re welcome ninowi, feel free to leave a review of the plugin and support here! ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘IE 11 not loading with optimized JS files’ is closed to new replies.