t_onReady(function () { var rec = document.getElementById('rec100768567'); if (!rec) return; var customImageList = rec.querySelectorAll('img.t-sociallinks__customimg'); Array.prototype.forEach.call(customImageList, function(img) { var imgURL = img.getAttribute('src'); if (imgURL.indexOf('/lib__tildaicon__') !== -1 || imgURL.indexOf('/lib/tildaicon/') !== -1) { var xhr = new XMLHttpRequest(); xhr.open('GET', imgURL); xhr.responseType = 'document'; xhr.onload = function() { if (xhr.status > = 200 && xhr.statu