holder.js
I want to dynamically add a placeholder image to my page.
Inserting it also does not work:
$('<li>',{class:'file-item'}) .append($('<img>',{'data-src':'holder.js/150x150'})) .append($('<span>',{class:'file-name'}).text(file.name)) .appendTo('#file-list');
Since the holder of the script is already running and is not looking for new elements.
We can, however, start it again manually:
Holder.run()
But then it will scan all the elements that are already added.
So ... is there a way I can get holder.js to create and return to me the DOM element so that I can add it manually without restarting all this?
source share