Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
html() uses a regular expression that performs badly in IE > 9 #2563
rnoInnerhtml = /<(?:script|style|link)/i
The above causes significant performance issues in IE 10 IE 11 and EDGE when inserting large amounts of HTML using the html function.
It can be re-written as the following:
The above performs at the same level in other browsers and exponentially faster in IE .
Note when testing you the first test will always be slower than the second in chrome / firefox
Ticket logged at Microsoft however i think jQuery should be fixed anyways.