3D model viwer freeze for a few milisconds

I am working on a model viewer and I have an issue when the model is added to the scene there is a few milliseconds freeze, I am not sure why this is happening.

https://fwdapps.net/ht/emv/demo/

Thank you.

In-depth, its caused by (in usually a small amount) shader code compliation on the GPU and (in usually a significant amount) texture upload to the GPU.

There’s been quite a few discussions on the topic - but the only solution is to preload the model materials beforehand, in moments when frame stutter wouldn’t be noticeable by the user (ex. during some loading screen.)

In this project case is not possible, the user must see the loading progress it can’t be done invisibly in the background… or hidden.