-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WOW.js cannot detect dom mutations, please call .sync() after loading new content. #166
Comments
In normal browsers Wow automatically detects changes to the DOM like when elements are added dynamically through an AJAX call or elements changed position. IE9 doesn't support this way of detecting changes and you need to call wow.sync manually which re-checks the page for changes to ensure everything is working correctly. If you're not adding things dynamically (like with AJAX) then you'll be fine and you don't need to call wow.sync. However, if you do load content dynamically simply call wow.sync after the content has been added. var wow = new WOW();
var request = $.ajax({
method: "GET",
url: "http://example.com/test.php"
});
request.done(content) {
// add your content to the page
blablabla
// Synchronise WoW
wow.sync();
} |
Thank you very much. Makes sense to me now. Much appreciated. |
You're welcome! |
Hi, Having issues here as described above with a livehelp (livehelperchat.com) and the status div which is hidden. Heres a little more about the issue (start about half way down the page): Have tried adding in the wow.sync here:
Also tried on the js script embed code:
Also tried as a callback on the js script embed code:
Im not having any luck here, any help would be so much appreciated! |
Currently using a fork of WOW just to remove the following lines:
I'm testing pages without BrowserSync and any other parts of my JS modules which might add elements to the page, nor am I using XHR. And I still get these warnings. 😑 So the issue with WOW for me, is that it writes a nasty warning to the console - rather than anything like |
Hi!
But I cannot get rid of these warnings:
They are showed in all browsers. I'm not adding something dynamically How could it be fixed? |
It would be nice to be able to disable these warnings. I'm using this in Vue without any issues but the errors are ugly for production. |
Any news on it? Actually, I think my browser does support Is this project still alive? I see the last release was on Apr 7, 2015 ping @matthieua @attilaolah |
Solved with var wow = new WOW({
live: false
}); |
Hi,
I have been using wow.js and i really do appreciate all the work that's been put in to.
My Java script skills are not the best, so please pardon my silly question.
Currently using on a site and it works fine on all browsers, except IE9 which gives the error:
WOW.js cannot detect dom mutations, please call .sync() after loading new content.
So i read about this: - you can call the wow.sync() method after you have added new DOM elements to animate (but live should still be set to true).
So the live is set to true. (check)
But how do i implement the wow.sync()
Any help would be greatly appreciated from a learning javascript person.
The text was updated successfully, but these errors were encountered: