• Resolved SuperBomd

    (@ngothoai)


    Please check this bug Error Swiper is not defined.
    When i update new version, then slider not working, and bug.
    Please quickfix this bug.
    Because it is very important with me and someone when we use this plugin.
    I am using plugin version free
    Regard,

    • This topic was modified 3 years, 2 months ago by SuperBomd.
Viewing 1 replies (of 1 total)
  • Hi,
    Please try adding the following –

    if ( 'undefined' === typeof Swiper ) {
      const asyncSwiper = elementorFrontend.utils.swiper;
     
      new asyncSwiper( swiperElement, swiperConfig ).then( ( newSwiperInstance ) => {
        console.log( 'New Swiper instance is ready: ', newSwiperInstance );
     
        mySwiper = newSwiperInstance;
      } );
    } else {
      console.log( 'Swiper global variable is ready, create a new instance: ', Swiper );
     
      mySwiper = new Swiper( swiperElement, swiperConfig );
    }

    And have a look at the following page for more information –
    https://developers.elementor.com/experiment-optimized-asset-loading/

    Let me know how it goes.

Viewing 1 replies (of 1 total)
  • The topic ‘Error Swiper is not defined’ is closed to new replies.