Skip to content
Permalink
Browse files

Limit domManip caching to strings < 512 characters long. Ticket #4883.

  • Loading branch information
jeresig committed Jul 11, 2009
1 parent 2a268f5 commit 0c4418bbc4022ed5cb746af364ff1c0d7c331209
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/manipulation.js
@@ -140,7 +140,7 @@ jQuery.fn.extend({
var fragment, scripts, cacheable, cached, cacheresults, first;

if ( this[0] ) {
if ( args.length === 1 && typeof args[0] === "string" ) {
if ( args.length === 1 && typeof args[0] === "string" && args[0].length < 512 ) {
cacheable = true;
cacheresults = jQuery.fragments[ args[0] ];
if ( cacheresults ) {

0 comments on commit 0c4418b

Please sign in to comment.
You can’t perform that action at this time.