When I use the preview mode, the class load dynamically.

I would like to keep that behaviour, in production mode.

Why? Because I have a tree menu, and each time I click on the button menu, I would like to load a new page in the container "center" on my page. I don't want to refresh all the pages, how can I do that ?