Skip to content
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

arrive.js not triggering consistently #33

Closed
jaredsohn opened this issue Jun 22, 2015 · 2 comments
Closed

arrive.js not triggering consistently #33

jaredsohn opened this issue Jun 22, 2015 · 2 comments

Comments

@jaredsohn
Copy link

Thanks for this library; it has made things much easier to work with compared to raw mutation observers and mutation-summary.

I am presently making heavy use of arrive.js calls in the early stages of a Chrome extension rewrite and find that sometimes arrive.js is missing the changes. In these situations, often if I restart Chrome it works again. I know that there are a lot of changes that I can make to improve performance (combine redundant arrive.js calls, scope them to more specific parents instead of document.body, cancel them when I know that they are no longer relevant, and maybe drop down to raw mutation observers in certain circumstances. but I am wondering if you have any information about Chrome limitations with respect to using a large number of mutation observers and if the behavior that would occur in such a circumstance matches the behavior I am experiencing.

@uzairfarooq
Copy link
Owner

I don't think there's any such limitation in MutationObservers. If it misses some elements, it might be a bug in arrive.js (although I've used it in many projects and never faced such an issue). Are there any steps to reproduce it or it happens randomly?

@jaredsohn
Copy link
Author

My problems came about because I wasn't capturing exceptions prior to calling arrive so arrive never got called. Restarting Chrome would fix things because this site will change the URL when you reload the page which would change the DOM in a way that would cause my code to throw exceptions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants