JSFiddle - React, Tailwind, and code Playground

HTML

<html>
    <head>
    </head>
    <body>
        Testing...<br/>
    </body>
</html>

JavaScript

if(!Object.keys) Object.keys = function(x) {
   var result = [];
   for(var key in x) result.push(key);
   return result;
};

// when a comment node is created and data is applied, 
// the jQuery cache is not restored to its original
// state when the comment node is removed.

$('body').append("Before Leaking: " + Object.keys(jQuery.cache).length);
var my_comment_node = jQuery("<!-- comment -->").insertAfter('body');
my_comment_node.data('something', 5);
my_comment_node.remove();
$('body').append("<br/>After Leaking: " + Object.keys(jQuery.cache).length);