DEV Community

Discussion on: A few sneak peeks into technology (III - Turbolinks frames)

yoelblum profile image

Very nice article!
"Stimulus will notice that the attributes were added to the DOM and will call the appropriate JS controllers"
I don't understand this part, is Stimulus called whenever something is updated in the DOM?

borama profile image
Matouš Borák Author

Thank you!

Regarding your question, yes. Stimulus uses the Mutation observer API in modern browsers so that it's all very speedy and lightweight.