Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
The iframe I have embedded in custom liquid on the home page at times just doesn't 'load' on peoples browsers.
Here is the code in the liquid - <iframe src="https://levonkev.github.io/background4/" frameborder="0" style="width: 100%; height: 800px;"></iframe>
Is there ANOTHER way to embed this iframe that'll be more consistent? otherwise what can I add or change in the code to have it always load on my homepage?
Do you have a page link you can share where it's not loading? When it doesn't load what do the browser console logs say? Why in an iframe to start with?
Ok, that's probably enough questions to barrage you with to start!
Unfortunately not atm, it's quite 'random' and seems to generally be related to Chrome.
My friend said it was working on safari though.
I'm only using iframe because it just seems like the easiest way to display the interactive animation, I'm open to other avenues.