That’s expected if you build your extensions using inadequate hooks, like $( document ).ready
or anything like that.
Discourse is an EmberJS app, so any extensions should take that into consideration and hook into the app existing hooks. You can learn about that at Beginner's guide to developing Discourse Themes