Stop IE from loading dynamically included script twice

前端 未结 6 2031
孤街浪徒
孤街浪徒 2020-12-01 16:49

I am including some related content on misc. web pages by adding a

6条回答
  •  伪装坚强ぢ
    2020-12-01 17:42

    I find the same problem,only happen in IE.

    jQuery‘s html() method chains is: html>append>domManip>clean

    clean() method use innerHTML make string to DOM, innerHTML in IE has a bug that script tag will immediately load(first load), jQuery evalScript script tags at the end of domManip method(ajax load).then script file load twice in IE.

    I think jQuery should fix this problem,update the clean() method

提交回复
热议问题