- var fragment = (this[0].ownerDocument || this[0]).createDocumentFragment(),
- scripts = jQuery.clean( args, (this[0].ownerDocument || this[0]), fragment ),
- first = fragment.firstChild;
+ if ( args.length === 1 && typeof args[0] === "string" ) {
+ cacheable = true;
+ cacheresults = jQuery.fragments[ args[0] ];
+ if ( cacheresults ) {
+ if ( cacheresults !== 1 ) {
+ fragment = cacheresults;
+ }
+ cached = true;
+ }
+ }
+
+ if ( !fragment ) {
+ fragment = (this[0].ownerDocument || this[0]).createDocumentFragment();
+ scripts = jQuery.clean( args, (this[0].ownerDocument || this[0]), fragment );
+ }
+
+ first = fragment.firstChild;