Check whether there is a performance difference between iframe and ajax on the partial switch page. if so, is there a big gap? Which has better performance?

Source: Internet
Author: User
Ask if there is any performance difference between iframe and ajax on the partial switchover page. if so, is there a big gap? Which one has better performance? It has always been the development of a simple business layer. if the problem is too small, please bear with the ThinkPHP framework. if there is such a page, click the button to switch the content in the box, use ajax to request a specified page in the background (use smart to ask if there is a performance difference between iframe and ajax in the partial switching page. if so, is there a big gap? Which one has better performance?
It has always been a simple business layer development. if the problem is too small, please forgive me.


ThinkPHP framework,

When there is such a page, click the button to switch the content in the box and use ajax to request a specified page in the background (use the smarty template to render the specified template file and return the html string filling ), is it highly efficient to directly access the corresponding action and Method (rendering the specified template file) using ifarme?


------ Solution --------------------
There is no difference in efficiency, but there is a difference in effectiveness
Iframe can be rendered at will
Pay attention to the effect of the appended style sheet on the whole of ajax.
------ Solution --------------------
It is better to fill the template with iframe directly, so that the interface can be controlled through html, and the server side reduces the trouble of designing the template.

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.