Progressively load template content via JavaScript. Useful for wrapping low-priority heavy content like iframe
embeds such to load after initial page load and only when JavaScript is enabled. Gracefully degrades to noop.
npm install templace
<template data-templace>
<iframe src="..."></iframe>
</template>
<script src="templace.js" async defer></script>
templace()
template {
display: none;
}
It's a simple minimum viable package with more granular features in consideration