<memory-stats> provides a Custom Element for memory-stats.js.
Available on Bower as memory-stats-element.
$ bower install memory-stats-element
This component is built on the upcoming Web Component stack. Specifically, it requires a feature called Custom Elements.
You'll need to use a polyfill to get this feature today. Either the Polymer or X-Tag frameworks supply a polyfill, or you can install the standalone CustomElements polyfill.
<script src="https://cdnjs.cloudflare.com/ajax/libs/webcomponentsjs/0.5.5/CustomElements.min.js"></script>
You would also need the memory-stats.js package available from Bower.
$ bower install memory-stats
This component provides a very basic element, <memory-stats>
. Simply
add the following anywhere inside the <body>
of your HTML element.
<memory-stats></memory-stats>
Thanks to @paulirish's memory-stats.js project.