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.

Loading time when Hosting on Website

Home Forums Programming Loading time when Hosting on Website

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #84212
    vergemo
    Participant

    Hi,

    I am currently hosting a Verge3D app (iframe) that I made on my Shopify website. The app is being hosted on AWS. Currently the way it works is that the app doesnt load untill the user scrolls down to it, which is not ideal because the wait time is between 5-10 seconds and no one will wait that long. So I am trying to find a solution where the app starts to load as soon as the webpage starts so that by the time the user scrolls down to the app it would be fully loaded and ready for use. I tried a few from ChatGPT such as setting loading=”eager” and a few others but none worked. Any solutions would be appreciated.

    Below is my current code to display the app:
    <!DOCTYPE html>
    <html>
    <head>
    <title>Shopify Website with Iframe</title>
    <style>
    .iframe-container {
    display: flex;
    justify-content: center;
    align-items: center;
    }

    .threedviewer {
    border-radius: 20px;
    overflow: hidden;
    width: 550px;
    height: 350px;
    }

    /* Mobile view */
    @media (max-width: 768px) {
    .iframe-container {
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
    }
    }

    /* PC view – customize width and height here */
    @media (min-width: 769px) {
    .threedviewer {
    width: 620px; /* Adjust as needed */
    height: 500px; /* Adjust as needed */
    }
    }
    </style>
    </head>
    <body>

    <iframe class=”threedviewer” src=”<!–Verge3D App is placed here–>” frameborder=”0″></iframe>

    </body>
    </html>

    #84215

    Hi,

    The iframe element should be loaded eagerly by default, so no need to add the loading=”eager” param. Perhaps your scene freezes after it has been loaded. It may happen in the following cases:

    1) There are some really heavy calculations in Puzzles (in the main tabs).
    2) You’re using fog puzzle which recompiles all shaders on the scene (which is quite long operation).
    3) You enabled some complex post processing effects.

    Please provide more info regarding your case (or maybe a link to the actual app).

    Soft8Soft Tech Chief
    X | FB | LinkedIn

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