Riccardo Balbo пре 4 година
родитељ
комит
ee5798d5ee
3 измењених фајлова са 3 додато и 3 уклоњено
  1. 1 1
      static/js/Main.js
  2. 1 1
      static/js/showcase.js
  3. 1 1
      static/js/utils.js

+ 1 - 1
static/js/Main.js

@@ -103,7 +103,7 @@ class GithubService{
 }
 
 
-window.addEventListener("load", function () {
+window.addEventListener("DOMContentLoaded", function () {
 	OpenCollectiveService.init();
 	GithubService.init();
 });

+ 1 - 1
static/js/showcase.js

@@ -129,6 +129,6 @@ const ShowCase=function(showCaseEl){
 
 
 }
-window.addEventListener("load", function () {
+window.addEventListener("DOMContentLoaded", function () {
 	document.querySelectorAll("#showcase").forEach(el=>new ShowCase(el));
 });

+ 1 - 1
static/js/utils.js

@@ -58,7 +58,7 @@ PROGRESS_BAR_INTERVAL = setInterval(function () {
 }, 20);
 
 
-window.addEventListener("load", function () {
+window.addEventListener("DOMContentLoaded", function () {
     document.querySelectorAll(".toggleNavOnPortraitButton").forEach(el=>{
         const toggleId=el.getAttribute("toggle");
         if(!toggleId)return;