2023-05-16 03:59:18 +00:00
|
|
|
// Some useful functions used throughout my code
|
|
|
|
// Based on this SO answer https://stackoverflow.com/a/35880730/9523246
|
|
|
|
function lazyLoadCSS(url) {
|
2024-02-06 04:13:57 +00:00
|
|
|
var css = document.createElement('link');
|
2023-05-16 03:59:18 +00:00
|
|
|
css.href = url;
|
|
|
|
css.rel = 'stylesheet';
|
|
|
|
css.type = 'text/css';
|
|
|
|
document.getElementsByTagName('head')[0].appendChild(css);
|
|
|
|
}
|