What are the advantages and disadvantages of IFRAME?

Source: Internet
Author: User

1. Disadvantages
The biggest drawback of using frame structures in Web pages is that search engine "spider" Programs cannot interpret this page. You spend a lot of time, energy and money to open an online mall, but deliberately do not allow search engines to retrieve the mall, it is like opening a retail store, but the windows are painted black, but also do not hang any signs. The IFRAME blocks the onload event on the main page, the IFRAME and the main page share the connection pool, and the browser restricts the connection to the same domain, which can affect the parallel loading of the page, and these two drawbacks need to be considered before using the IFRAME. If you need to use an IFRAME, it is best to add the SRC attribute value dynamically to the IFRAME via JavaScript, which can bypass the two questions above.
2. Advantages
We can selectively let users view the site, do not need search engine crawling content, with ifame frame display, need to search engine crawling content without ifame frame display, so that can be very good to streamline the code.
IFrame can be the original page completely intact display, but, if used in the home page with IFrame, is undoubtedly self-suicidal road. Because once the Web page is covered by the IFRAME, your site even if you do a good job, also can not be ranked! If it is a Dynamic Web page, use the include is OK, but must remove its

What are the advantages and disadvantages of IFRAME?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.