Neat! Glad someone got around to doing this before I did.
A slight improvement would be to allow the loading placeholder to be supplied through config or templates, which would also make this neatly integrated with React et al.
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 -->
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Neat! Glad someone got around to doing this before I did.
A slight improvement would be to allow the loading placeholder to be supplied through config or templates, which would also make this neatly integrated with React et al.
Nice suggestion! Changed it so it'll only show the default loading message if it's empty: