Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I use Blogger as a platform for an electronic music blog. Because of the thematics of the blog I embed many iframes (Youtube & Soundcloud). Of course this makes the articles load slowly. Almost every article on this blog consists of some text and many iframes below. What should I do in this particular case in order to make the pages load faster. Is there any available solution or I should use some jQuery like lazy load to load iframes once the scroller reaches them?

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

The best solution: use fewer iFrames.

The more complicated solution: Use your web server to actually proxy the content using a Reverse Proxy of where the iFrames point to, then cache the content on YOUR server, serve as if it is your own content.

Failing that, it entirely depends on your visitors' internet connections, computers, etc. If one of the framed sites loads fast for you, it may not load fast for your visitors. The browser has to make separate requests for every image and resource on each of the separate iFramed sites, then load them at the same time or slightly after your own HTML content.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.