'use strict';
/*
* Novicell master
* Use this file to call functions in other files, on document ready, window.resize etc.
*/

var novicell = novicell || {};
var projectName = projectName || {};

// Document ready
document.addEventListener('DOMContentLoaded', function(){
    svg4everybody(); // Fix SVG spritemap in IE/Edge
    novicell.validate.init(); // Init Validation
    novicell.inputMasking.init(); //Init input masking
    novicell.persistentField.init(); //Init persistentField
    novicell.slider.init(); 
    novicell.cookieInfo.init(); 
    console.log('it works!');
});
'use strict';
/*
* Novicell master
* Use this file to call functions in other files, on document ready, window.resize etc.
*/

var novicell = novicell || {};
var projectName = projectName || {};

// Document ready
document.addEventListener('DOMContentLoaded', function(){
    novicell.validate.init(); // Init Validation
    novicell.inputMasking.init(); //Init input masking
    novicell.persistentField.init(); //Init persistentField
    novicell.slider.init(); 
    novicell.cookieInfo.init(); 
    //SetTimeout to fix latency with loaded elements in e.g. Vue components
    setTimeout(() => {
        svg4everybody(); // Fix SVG spritemap in IE/Edge
    });
    console.log('it works!');
});

Call svg4everybody in a setTimeout
Call svg4everybody in a setTimeout

Fixing issue with svg4everybody not handling icons that are loaded with latency in e.g. Vue components