DEV Community

Discussion on: Include HTML-in-HTML: an iteration

Collapse
 
lionelrowe profile image
lionel-rowe • Edited

Nice suggestion! Changed it so it'll only show the default loading message if it's empty:

<include-html src="./example.html"></include-html> <!-- Shows "Loading..." -->

<include-html src="./example.html">
    <div class="spinner"></div>
</include-html> <!-- Shows custom spinner -->
Enter fullscreen mode Exit fullscreen mode