AJAX v/s IFrame
I am loading a pure HTML code from a AJAX get request and appends it into a div using JQuery. In IE this process is quite slow. I used several method to speed this up but it does not have a major impact on IE.
So alternative is to load this content via开发者_开发百科 IFrame. Iframe is rendered by browser and hence can be faster as compared to AJAX.
What are your thoughts guys?
I would suggest you to check how long takes to prepare result on back end. Then to check how long takes to get response on client and then compare. Probably there is a latency while you appending response into a div. Only after you will make those checks it could be clear which one is preferable.
精彩评论