Skip to content

Commit

Permalink
index.html: remove redundant requestAnimationFrame call
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Sep 18, 2021
1 parent 000140a commit a941077
Showing 1 changed file with 17 additions and 19 deletions.
36 changes: 17 additions & 19 deletions src/index.html
Expand Up @@ -190,27 +190,25 @@ <h1 class="settings-sub-heading">Features</h1>
});

requestAnimationFrame(function() {
requestAnimationFrame(function() {
[
'all.css',
'https://fonts.googleapis.com/css?family=Roboto:400,700%7CInconsolata'
].forEach(function(url) {
var link = document.createElement('link');
link.rel = 'stylesheet';
link.crossorigin = true;
link.href = url;
[
'all.css',
'https://fonts.googleapis.com/css?family=Roboto:400,700%7CInconsolata'
].forEach(function(url) {
var link = document.createElement('link');
link.rel = 'stylesheet';
link.crossorigin = true;
link.href = url;

document.head.appendChild(link);
});
document.head.appendChild(link);
});

[
'js/page.js',
'https://www.google-analytics.com/analytics.js'
].forEach(function(url) {
var script = document.createElement('script');
script.src = url;
document.head.appendChild(script);
});
[
'js/page.js',
'https://www.google-analytics.com/analytics.js'
].forEach(function(url) {
var script = document.createElement('script');
script.src = url;
document.head.appendChild(script);
});
});
</script>
Expand Down

0 comments on commit a941077

Please sign in to comment.