开发者

Is it always safe to remove a script include tag after document.ready?

I have a pretty strange 'ass开发者_Python百科embly' of an HTML file going on, with <script> tags sprinkled throughout in various areas (can't do anything about that). One of these (deeply nested) is an include for jQuery. I need to remove the DOM element that has this jQuery script tag, so I want to make sure that is a safe operation. I'm assuming that since jQuery has already been loaded into memory I should be fine (and everything seems to work ok) but just wanted to verify.

Not relevant to this question but if you need to know why I would want to do such a thing take a look at jQuery table.wrap() causes layout issues


This shouldn't cause problems, except when the script tags are expected to exist in the DOM (for whatever reason).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜