javascript - Loading external sites into Iframe dynamically - is there a better way? -


I created an application that currently uses iframe to load external sites.

This method is actually slowing down my application - it is taking 5 seconds to load the page which is in its tab / window & lt; Can load in 1sec.

Can I apply any solutions that will gain more speed? Thanks!

Edit:

Here is the code I am currently using:

  & lt; Script type = "text / javascript" & gt; // Change the iframe on a button Click event $ ("# myButton"). (Event (event) {$ ("# myiframe"). Attr ('src', $ ('# url'). Val ());}); & Lt; / Script & gt; & Lt; Input class = "url_top" type = "text" id = "url" value = "http: //" & gt; & Lt; An id = "myButton" href = "#" & gt; Load & lt; / A & gt; & Lt; Iframe id = "myiframe" height = "80%" width = "100%" square = "netframe" src = "page.php" & gt; & Lt; / Iframe & gt; If you are loading sites in an iframe then you are probably doing one;  

@ right thumbnail? This is slowing down because it is necessary to present each page in your name, so you are struggling with the speed of the external site, with a factor of n where n is the number of sites on your page.

Please provide more information about the consequences of what you want so that the great community probably advises on different strategies.


Comments