I need to load in my current page a html fragment of a remote, dynamic page (same domain), and I am trying to understand the performance impact of using a simple (hidden) iframe vs. using ajax+eval (or $.load in jQuery).
It seems to me that both are basically doing the same, as in both cases the html needs to be loaded and the scripts evaluated. So the result looks the same to me.
Am I missing something, and could somebody explain how the additional effort of using ajax+eval brings performance improvements?
I insist that the remote page I am dealing with is dynamic, and the scripts need to be evaluated. It is different from a simple GET to retrieve static content.