Do not add any inline script in theme
-
<script>
/(trident|msie)/i.test(navigator.userAgent)&&document.getElementById&&window.addEventListener&&window.addEventListener("hashchange",function(){var t,e=location.hash.substring(1);/^[A-z0-9_-]+$/.test(e)&&(t=document.getElementById(e))&&(/^(?:a|select|input|button|textarea)$/i.test(t.tagName)||(t.tabIndex=-1),t.focus())},!1);
</script>this code in astra/inc/core/class-astra-enqueue-scripts.php , please add by wp_enqueue_scripts asap
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Do not add any inline script in theme’ is closed to new replies.
