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

Use MutationObserver to avoid needing to use page load events #232

Closed
simmerz opened this issue Aug 9, 2018 · 1 comment
Closed

Use MutationObserver to avoid needing to use page load events #232

simmerz opened this issue Aug 9, 2018 · 1 comment
Labels
community question all in for feedback

Comments

@simmerz
Copy link

simmerz commented Aug 9, 2018

It would be great to load in bootstrap.native and let it get on with itself without having to instantiate it on new html coming in to the page either via turbolinks, xhr or templating tools.

Using MutationObserver removes the need to add any event listeners at all. There are polyfills for older browsers available too. It's the same way that stimulus.js (https://github.com/stimulusjs/stimulus) does things.

@thednp
Copy link
Owner

thednp commented Aug 9, 2018

As discussed before we came to the conclusion that this kind of functionality is for each user to decide on how to implement.

@thednp thednp closed this as completed Aug 9, 2018
@thednp thednp added the community question all in for feedback label Aug 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community question all in for feedback
Projects
None yet
Development

No branches or pull requests

2 participants