jquery - Cloning javascript library into iFrame -
I am creating a popup dialog using jQueryUI. I have problems because I am using the same blocks of HTML and Javascript code on the page. (This application was not designed for it and I do not want to read it in depth). So I have two tags with the same To avoid this, I decided to open a dialog in an iframe. Everything works, of course, but popup opens slowly (there is a long list of JS and CSS files to load). They are definitely in the cache, but the browser sends them a request to check them. Question : Can anything be done as a quick help? I can connect to the original window using Javascript, so can I either import or clone (deep copy), for example, the jQuery library? Text "> You do not need to clone jQuery, you can also use it from within frame ID attributes in the document - on the page and in popup.
parents. $ ('Selector ', Document) .someMethod ()
Comments
Post a Comment