Commit 0d12f8e7 authored by Kaushal Modi's avatar Kaushal Modi

Add type="application/javascript" to inline script at more places

parent ce18a104
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
</noscript> </noscript>
</div> </div>
<script src="https://my.remarkbox.com/static/js/iframe-resizer/iframeResizer.min.js"></script> <script src="https://my.remarkbox.com/static/js/iframe-resizer/iframeResizer.min.js"></script>
<script> <script type="application/javascript">
var rb_owner_key = "{{ .owner_key }}"; var rb_owner_key = "{{ .owner_key }}";
var thread_uri = window.location.href; var thread_uri = window.location.href;
var thread_fragment = window.location.hash; var thread_fragment = window.location.hash;
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
<!-- https://report-uri.com/home/hash/ <!-- https://report-uri.com/home/hash/
'sha256-AICaU7ez1zEahkwGOinOvyDtJHKvnJAO607ClgXh4xg=' 'sha256-AICaU7ez1zEahkwGOinOvyDtJHKvnJAO607ClgXh4xg='
--> -->
<script>var nav=responsiveNav("#nav");</script> <script type="application/javascript">var nav=responsiveNav("#nav");</script>
<!-- Fragmentions - https://github.com/chapmanu/fragmentions <!-- Fragmentions - https://github.com/chapmanu/fragmentions
Fragmentioner - https://github.com/kartikprabhu/fragmentioner Fragmentioner - https://github.com/kartikprabhu/fragmentioner
......
{{ with .Site.GoogleAnalytics }} {{ with .Site.GoogleAnalytics }}
{{ "<!-- Google Analytics -->" | safeHTML }} {{ "<!-- Google Analytics -->" | safeHTML }}
<script> <script type="application/javascript">
// https://stackoverflow.com/a/41065130/1219634 // https://stackoverflow.com/a/41065130/1219634
if(navigator.userAgent.indexOf("Speed Insights") == -1) { if(navigator.userAgent.indexOf("Speed Insights") == -1) {
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date; // https://developers.google.com/analytics/devguides/collection/analyticsjs/#alternative_async_tracking_snippet window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date; // https://developers.google.com/analytics/devguides/collection/analyticsjs/#alternative_async_tracking_snippet
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
<!-- https://github.com/filamentgroup/loadCSS --> <!-- https://github.com/filamentgroup/loadCSS -->
<!-- view-source:https://master-origin-loadcss.fgview.com/test/preload.html --> <!-- view-source:https://master-origin-loadcss.fgview.com/test/preload.html -->
{{ with .Site.Params.css_lazy_load }} {{ with .Site.Params.css_lazy_load }}
<script> <script type="application/javascript">
/*! loadCSS. [c]2017 Filament Group, Inc. MIT License */ /*! loadCSS. [c]2017 Filament Group, Inc. MIT License */
!function(a){"use strict";var b=function(b,c,d){function e(a){return h.body?a():void setTimeout(function(){e(a)})}function f(){i.addEventListener&&i.removeEventListener("load",f),i.media=d||"all"}var g,h=a.document,i=h.createElement("link");if(c)g=c;else{var j=(h.body||h.getElementsByTagName("head")[0]).childNodes;g=j[j.length-1]}var k=h.styleSheets;i.rel="stylesheet",i.href=b,i.media="only x",e(function(){g.parentNode.insertBefore(i,c?g:g.nextSibling)});var l=function(a){for(var b=i.href,c=k.length;c--;)if(k[c].href===b)return a();setTimeout(function(){l(a)})};return i.addEventListener&&i.addEventListener("load",f),i.onloadcssdefined=l,l(f),i};"undefined"!=typeof exports?exports.loadCSS=b:a.loadCSS=b}("undefined"!=typeof global?global:this); !function(a){"use strict";var b=function(b,c,d){function e(a){return h.body?a():void setTimeout(function(){e(a)})}function f(){i.addEventListener&&i.removeEventListener("load",f),i.media=d||"all"}var g,h=a.document,i=h.createElement("link");if(c)g=c;else{var j=(h.body||h.getElementsByTagName("head")[0]).childNodes;g=j[j.length-1]}var k=h.styleSheets;i.rel="stylesheet",i.href=b,i.media="only x",e(function(){g.parentNode.insertBefore(i,c?g:g.nextSibling)});var l=function(a){for(var b=i.href,c=k.length;c--;)if(k[c].href===b)return a();setTimeout(function(){l(a)})};return i.addEventListener&&i.addEventListener("load",f),i.onloadcssdefined=l,l(f),i};"undefined"!=typeof exports?exports.loadCSS=b:a.loadCSS=b}("undefined"!=typeof global?global:this);
/*! loadCSS rel=preload polyfill. [c]2017 Filament Group, Inc. MIT License */ /*! loadCSS rel=preload polyfill. [c]2017 Filament Group, Inc. MIT License */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment