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

Re: Whats the best way to work with iframes? I have one embedded on my home page via custom liquid

Whats the best way to work with iframes? I have one embedded on my home page via custom liquid

levon
Tourist
13 0 1

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?

Replies 2 (2)

Jason
Shopify Partner
11207 226 2321

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!

★ I jump on these forums in my free time to help and share some insights. Not looking to be hired, and not looking for work. http://freakdesign.com.au ★
levon
Tourist
13 0 1

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.