• Resolved peterborg

    (@peterborg)


    I have a website built with Elementor, when I enable the Siteground Optimizer plugin im getting this error ‘Uncaught ReferenceError: Swiper is not defined at HTMLDivElement. (siteground-optimizer-combined-js-ebb5323899457474f9a1b1656d1ab87f.js:357:1420)’

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Georgi Ganchev

    (@georgiganchev)

    Hello @peterborg ,

    The error message you’re seeing, “Uncaught ReferenceError: Swiper is not defined,” indicates that the JavaScript code on your webpage is trying to use the Swiper library, but it hasn’t been loaded or defined properly before it is being used.

    What you can do is to check and verify that the Swiper script is loaded before any custom scripts that initialize or use Swiper. The order of script inclusion is crucial in JavaScript. This can be a problem with the combination unless the script is loaded properly.

    Ensure that the Swiper library is properly included in your HTML file. You should have a script tag that links to the Swiper library, either from a CDN or a local file.

    If you encounter issues you can exclude the script from the JS combination using the exclude option in the plugin or custom filter. Details about the custom filters can be found here:

    https://eu.siteground.com/tutorials/wordpress/speed-optimizer/custom-filters/

    The filters are provided in the section Exclude scripts from being combined onward.

    Should you experience any trouble, you can always open a Helpdesk request from your Client Area and we will do our best to assist.

    Best regards,
    Georgi Ganchev
    SiteGround.com

    Thread Starter peterborg

    (@peterborg)

    sorted Georgi, sorry about that was not the Siteground Optimizer plugin issue. Thanks for your detailed reply

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Uncaught ReferenceError: Swiper is not defined’ is closed to new replies.