I have a few html imports, which I use to load some reusable html fragments (not necessarily html templates), below is a minimalistic example of its usage. Given Html imports are becoming obsolete in Chrome could anyone come up with an equivalent module based implementation?
<!DOCTYPE html>
<html>
<head>
<link rel="import" name="ImportName" href="...">
</head>
<body>
<textarea id="textarea"></textarea>
<script>
document.getElementById("textarea").value = document.querySelector("link[name='ImportName']").import.body.innerHTML;
</script>
</body>
</html>