Sketchfab Forum

Prevent embedded model from loading until someone clicks?


(Leaderbrand) #1

My embedded models seem to take a lot of resources and slow things down when the page loads. Is there a way to load the embed as an image and then progress to the viewer when someone clicks?


(Mauricesvay) #2

Hello @leaderbrand,

you should be able to do that with some JavaScript.
Here is a basic example: https://jsfiddle.net/tkcyygb9/

There are probably jQuery plugins that can do that as well.