1. iframe will block the onload event of the main page;
2. The search engine retrieval program cannot interpret this kind of page, which is not conducive to SEO;
3. It will affect the parallel loading of the page .
Parallel loading: There is a limit to the number of loads under the same domain name at the same time:
Solution:
##Use js to dynamically load page content into the src of the iframe. The sample code is as follows:
<iframe id="fram">iframe>
- ## document.getelementbyid("fram")
.src= "a2.html"
The above is the detailed content of What are the disadvantages of iframes?. For more information, please follow other related articles on the PHP Chinese website!