Skip to content

Commit

Permalink
Move the netlify identity script to the bottom and defer it. It reall…
Browse files Browse the repository at this point in the history
…y slows things down on spotty connections
  • Loading branch information
Andy-set-studio committed Sep 20, 2019
1 parent ad5f954 commit a950e86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_includes/layouts/base.njk
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
<style>{% include "assets/css/global.css" %}</style>
{% block head %}
{% endblock %}
<script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>
</head>
<body>
{% include "partials/global/site-head.njk" %}
Expand All @@ -29,5 +28,6 @@
});
}
</script>
<script src="https://identity.netlify.com/v1/netlify-identity-widget.js" async defer></script>
</body>
</html>

0 comments on commit a950e86

Please sign in to comment.