This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function isVisibleInViewport(element) { | |
const elementStyle = window.getComputedStyle(element); | |
//Particular cases when the element is not visible at all | |
if ( | |
elementStyle.height == '0px' || | |
elementStyle.display == 'none' || | |
elementStyle.opacity == '0' || | |
elementStyle.visibility == 'hidden' || | |
elementStyle.clipPath == 'circle(0px at 50% 50%)' || | |
elementStyle.transform == 'scale(0)' || |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var icqLibrary = icqLibrary || {}; | |
icqLibrary.queue = icqLibrary.queue || []; | |
icqLibrary.queue.push(() => { | |
console.log('Queue 1'); | |
}); | |
icqLibrary.queue.push(() => { | |
console.log('Queue 2'); | |
}); |