Only serve Javascript to users of IE9 and above

Our Javascript errors in older versions of IE anyway, so we might as
well save people some bandwidth and page load speed by not serving it to
them.
This commit is contained in:
Chris Hill-Scott
2019-09-05 09:51:01 +01:00
parent cc713b4057
commit df2742f797

View File

@@ -109,7 +109,9 @@
{% endblock %}
{% block body_end %}
<!--[if gt IE 8]><!-->
<script type="text/javascript" src="{{ asset_url('javascripts/all.js') }}"></script>
<!--<![endif]-->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),