diff --git a/src/manipulation.js b/src/manipulation.js index 62009be20..b026672df 100644 --- a/src/manipulation.js +++ b/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 ) {