Home › Forums › Programming › Loading time when Hosting on Website
- This topic has 4 replies, 2 voices, and was last updated 41 minutes ago by
vergemo.
-
AuthorPosts
-
2025-08-21 at 6:53 am #84212
vergemo
ParticipantHi,
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>2025-08-21 at 7:48 am #84215Alexander Kovelenov
StaffHi,
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).
2025-08-21 at 10:29 am #84216vergemo
ParticipantHi Alex,
below are the images of the puzzles and a quick video showing what is happening. I hovered for a while before scrolling down just to show that the app doesnt load unless i scroll down to it. is there a way to make it load in the background of the website such that its fully loaded when the user scrolls down to it?
Thanks
2025-08-21 at 11:16 am #84220Alexander Kovelenov
StaffStrange, the puzzles look pretty lightweight. In some cases the scenes with many materials / light probes can freeze a bit at 100% progress.
If you wait longer before scrolling down will it demonstrate the same behavior? I mean is it the hidden iframe or maybe it’s just the scene that takes too much time to load?
2025-08-21 at 12:00 pm #84222vergemo
ParticipantI have tested to wait for over 30 seconds and it still does the same thing. The video that you see was stuck at 100% but many times when i scroll to it after waiting it starts from 0% or from 60%. is there a custom code that maybe i can add to the webpage that would force load the app? i tried a few tricks but it still doesnt work.
-
AuthorPosts
- You must be logged in to reply to this topic.