DEV Community

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

Collapse
 
yoelblum profile image
Yoel

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?

Collapse
 
borama profile image
Matouš Borák

Thank you!

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