Pre-loader with DispatcherMiddleware in Multi Page app

I have created a multi page dash app. I want to use the preloader. Can I wrap my div of app1, app2 etc. with Dcc.loading in app.layout to use the preloader. If not, then how?
Example:
Usual Dispatcher:
.
.
application = DispatcherMiddleware(home_app, {’/projects’: projects.server})
.
.

projects.py:
.
.
app.layout = dcc.Loading(…)
.
.

Will this work?
Please let me know?