We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

How to disable preloader until clicked (or a ‘lazy load’ option)

Home Forums General Questions How to disable preloader until clicked (or a ‘lazy load’ option)

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #37499
    offplan3d
    Participant

    For SEO I was fast page load times so I don’t want the verge3d app to load until it is clicked (or scrolled down to). How do I do this? I’ve looked at Initialization Puzzles but can’t see anything.

    #37515

    you can set the src attribute of your iframe element only when you need to load the Verge3D app in it.

    Chief 3D Verger | LinkedIn | Twitter

    #37538
    offplan3d
    Participant

    Thanks for the reply. Can i set the scr attribute in puzzles or do i have to edit the .html code of the finished app?

    #37574

    I think you should do this outside Verge3D, simply because it is not loaded yet.

    Chief 3D Verger | LinkedIn | Twitter

    #37734
    offplan3d
    Participant

    It’s a pity there’s no way using the WordPress plugin if you want a ‘Click To Load’ button but thanks for letting me know.

    #37744
    offplan3d
    Participant

    I’ve added a working Click To Load button with .html to set the scr of the iFrame. The issue now is that when the webGL app is loaded in this way, the first click changes the camera position and pivot- https://offplan3d.com/online-3d-vr-services/ any idea why this is or how to fix it?

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.