feat: Load only upon consent
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				ci/woodpecker/push/woodpecker Pipeline was successful
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	ci/woodpecker/push/woodpecker Pipeline was successful
				
			This commit is contained in:
		@@ -8,7 +8,8 @@
 | 
				
			|||||||
</head>
 | 
					</head>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<body>
 | 
					<body>
 | 
				
			||||||
    <div class="include-mastodon-feed dark" id="fedi-feed">Loading...</div>
 | 
					    <div class="include-mastodon-feed dark" id="fedi-feed"></div>
 | 
				
			||||||
 | 
					    <button onclick="activate()">Feed laden</button>
 | 
				
			||||||
</body>
 | 
					</body>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
</html>
 | 
					</html>
 | 
				
			||||||
@@ -304,7 +304,9 @@ const mastodonFeedLoad = function(url, elementId, options) {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
apiUrl = 'https://' + instance + '/api/v1/accounts/' + account_id + '/statuses';
 | 
					apiUrl = 'https://' + instance + '/api/v1/accounts/' + account_id + '/statuses';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
window.addEventListener("load", () => {
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					function activate() {
 | 
				
			||||||
  mastodonFeedLoad(
 | 
					  mastodonFeedLoad(
 | 
				
			||||||
    apiUrl,
 | 
					    apiUrl,
 | 
				
			||||||
    "fedi-feed",
 | 
					    "fedi-feed",
 | 
				
			||||||
@@ -329,4 +331,4 @@ window.addEventListener("load", () => {
 | 
				
			|||||||
      }
 | 
					      }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  );
 | 
					  );
 | 
				
			||||||
});
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user