(function(id, endpoint) { const CLASS_LOADING = 'feed--loading'; const CLASS_ERROR = 'feed--error'; // Insert a wrapper div const $script = document.getElementById(`${'feed-'+id+'-script'}`); let $wrap = null; if($script) { // The