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

[FAQ] Page-Specific Javascript #49

kirantpatil opened this Issue Jan 9, 2018 · 2 comments


None yet
3 participants
Copy link

kirantpatil commented Jan 9, 2018


Sorry, I didn't find any forum to post this question.

May I know, can we achieve "Page-Specific Javascript" loading as mentioned in Organizing Javascript in Rails Application With Turbolinks article using this framework ?



This comment has been minimized.

Copy link

dixpac commented Jan 9, 2018

@kirantpatil when you load the page stimulus only boots up new instances of controllers that you specified on the page. It uses MutationObservers under the hood.
So it should be "Page-Specific" out of the box :)


This comment has been minimized.

Copy link

dhh commented Jan 9, 2018

What @dixpac said 👍

@dhh dhh closed this Jan 9, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment