How to make a website handle 3-4 iframe widgets without trouble?
-
Web design question: too many iFrames. I have a client who wants her already-feature-heavy website to include, all at the same time, IFRAME widgets from Facebook, Google Maps, and a restaurant reservation system. The combined force of all these heavy-duty widgets seems to break the site on certain browsers, like IE. IE doesn't want to wait for three different third-party websites to load. It instead just shows white error "could not load this page" boxes. Is there a good way to make a page cope with so many embedded objects, or to somehow have more patience for longer page loading times?
-
Answer:
You're not wrong to http://www.stevesouders.com/blog/2009/06/03/using-iframes-sparingly/, though I wouldn't give up on looking for other explanations, because 3 doesn't seem like a large number to me. But perhaps it would help to delay loading the least important widgets with a little bit of Javascript, e.g. through creative use of setTimeout() or a bit of jQuery like this ...$(document).ready(function() { $("#some_div").html("<iframe src='http://google.com'></iframe>"); });
steinsaltz at Ask.Metafilter.Com Visit the source
Other answers
Wherever there's an option for asynch, just use that. The Facebook Like button JS is asynchronous and does not add to page load time. See the lovely and delightful http://yoast.com/social-buttons/.
DarlingBri
Could it be something to do http://stackoverflow.com/questions/2933075/facebook-xfbml-is-not-rendering-in-internet-explorer-8?
Magnakai
Thanks, everyone.
steinsaltz
I tried Monsieur Caution's trick and it worked great. Next time I will also look into this asynch.
steinsaltz
Related Q & A:
- How to make a fire in the wild, without burning the ground?Best solution by The Great Outdoors
- How to make a website popular?Best solution by Yahoo! Answers
- Dose anyone know how to make a toga without cutting a sheet?Best solution by Yahoo! Answers
- How do make a website and make money from it?Best solution by Yahoo! Answers
- How to make a website like yahoo answers?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.