Title: Found JavaScript inside head
Last modified: January 7, 2019

---

# Found JavaScript inside head

 *  Resolved [rajendradewani](https://wordpress.org/support/users/rajendradewani/)
 * (@rajendradewani)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/found-javascript-inside-head/)
 * I am referring to the points highlighted by ready.mobi
 * The following issue is highlighted.
 * JavaScript placement
    JavaScript includes should always be included at the end
   of the document to avoid blocking the page loading
 * Found JavaScript inside head
    <script>if(document.location.protocol!=”https:”){
   document.location=document.URL.replace(/^http:/i,”https:”);}</script>
 * Please help us fix the issue.

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Rogier Lankhorst](https://wordpress.org/support/users/rogierlankhorst/)
 * (@rogierlankhorst)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/found-javascript-inside-head/#post-11060504)
 * This is because you have enabled the javascript redirect. You can just deactivate
   the javascript redirect in settings/ssl.

Viewing 1 replies (of 1 total)

The topic ‘Found JavaScript inside head’ is closed to new replies.

 * ![](https://ps.w.org/really-simple-ssl/assets/icon-256x256.png?rev=2839720)
 * [Really Simple Security - Simple and Performant Security (formerly Really Simple SSL)](https://wordpress.org/plugins/really-simple-ssl/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/really-simple-ssl/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/really-simple-ssl/)
 * [Active Topics](https://wordpress.org/support/plugin/really-simple-ssl/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/really-simple-ssl/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/really-simple-ssl/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Rogier Lankhorst](https://wordpress.org/support/users/rogierlankhorst/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/found-javascript-inside-head/#post-11060504)
 * Status: resolved