SFDynamicHTML is a library that allow you to dynamically load HTML content from client-side/browser.
This library was useful to lazily change DOM content.
<divclass="user-list"><userid="1"><apart="href"><imgpart="src"><spanpart="html"></span></a></user><userid="2"><apart="href"><imgpart="src"><spanpart="html"></span></a></user><userid="1"><apart="href">Visit first user</a></user></div><script>SFDynamicHTML('user',{1:{html:"First",src:"https://upload.wikimedia.org/wikipedia/en/9/95/Test_image.jpg",href:"https://en.wikipedia.org/wiki/File:Test_image.jpg"},2:{html:"Second",src:"https://upload.wikimedia.org/wikipedia/en/9/95/Test_image.jpg",href:"https://en.wikipedia.org/wiki/File:Test_image.jpg"}},document.querySelector('.user-list')||false)</script>If you want to help in SFDynamicHTML library Please fork this project and edit on your repository, then make a pull request to here.
Keep the code simple and clear.
SFDynamicHTML is under the MIT license. But don't forget to put the a link to this repository.