I have a page on my website that I have added the Facebook like feature to it implemented via an frame as outlined in the Facebook specification.
The site is built in asp.net with client side development via jquery.
Performance tests on the page has shown it's now taking double the time to load than previously, with the issue being the introduction of Facebook iframe.
So need to fix this. Any tips or suggestions? Could a possible workatoubdcbe the loading of the iframe ayschraneously?
So, you should not use iframe excessively without monitoring what's going on, or you might end up harming your page performance. To avoid having your iframes slow down your pages, a good technique is to lazy load them (i.e., loading them only when they are required like when the user scrolls near them).
Definitely iframe affects the page load performance and also it is not recommended to use iframe for many page security issues perspective.
There are big problems, though The talk covered some of the things that iframes (and also popup windows) are really bad at: They have a terrible reputation; historically they've been used pretty much exclusively for advertizing and tracking. They're slow to load, resulting in a pretty terrible user experience.
I've found this to be the case too with some of my sites. You could try using JavaScript to insert the iframe
once the page has loaded.
You can give the iframe an id and leave it empty in the src .
Wait for the body onload event and then use the "getElementById" JavaScript method to get the ID of the iframe and then input that url as the src value.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With