in ArticleTemplates/assets/js/bootstraps/liveblog.js [297:334]
function liveblogInsertBlocks(afterBlockId, html) {
let i;
let images = [];
let blocks;
const articleBody = document.getElementsByClassName('article__body')[0];
const oldBlockCount = articleBody.getElementsByClassName('block').length;
const newBlockElems = getElemsFromHTML(html);
const icons = [].slice.call(document.getElementsByClassName('gap-loading'));
icons.forEach(loadingIcon => loadingIcon.parentNode.removeChild(loadingIcon))
document.getElementsByClassName('loading--liveblog')[0].classList.remove('loading--visible');
for (i = 0; i < newBlockElems.length; i++) {
if (afterBlockId) {
addNewBlockToBlog(document.getElementById(afterBlockId), newBlockElems[i])
} else {
newBlockElems[i].classList.add('animated');
newBlockElems[i].classList.add('slideinright');
articleBody.prepend(newBlockElems[i]);
}
}
blocks = articleBody.getElementsByClassName('block');
for (i = 0; i < blocks.length; i++) {
images.push(...blocks[i].getElementsByTagName('img'));
}
formatImages(images);
loadEmbeds();
loadInteractives();
window.liveblogTime();
checkInjectedComponents(false);
safeEnhanceTweets();
}