question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Method imagesReady not getting triggered

See original GitHub issue

Method imagesReady not getting triggered

mySwiper.on('imagesReady', function () {
  console.log('imagesReady');
});

Can someone else confirm this.

Cheers, David

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
debbygigigicommented, May 23, 2018

@drosendo hi, try to put the method in the options

swiperOption: {
    pagination: {
        el: '.swiper-pagination'
    },
    on: {
        imagesReady: function () {
            alert('imagesReady');
        }, 
    },
    // some swiper options...
}

It’s work for me. 😃

0reactions
xianshenglucommented, Oct 21, 2018

The same question happens to me! works with init event while imagesReady can’t be triggered! My problem was due to I change the data by ajax after slider component was rendered. So, can’t be triggered. So, I solved this by rendering slider component in the ajax callback, then imagesReady was triggered.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Swiper's "imagesReady" event not firing - Stack Overflow
In my code below, the init event seems to fire, but I can't get imagesReady to fire. Why is the imagesReady event not...
Read more >
Building an AR Scavenger Hunt - Lens Studio Community
The trigger set here will be the way to complete this stage. ... Once you got your markers images ready, import them by...
Read more >
SwiperOptions | Swiper - v8.4.5
The parameter works in the following way: If slidesPerGroupSkip equals 0 (default), no slides are excluded from grouping, and the resulting behaviour is...
Read more >
Events | Documentation - Froala
imagesLoaded initializationDelayed initialized input keydown keypress keyup link.bad link. ... Triggered after the HTML was served to the html.get method.
Read more >
GreenSock ScrollTrigger | CSS-Tricks
The point of this new plugin is triggering animation when a page ... has a knack for getting the APIs and performance just...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found