Title: Hanging noscript Tag
Last modified: August 31, 2016

---

# Hanging noscript Tag

 *  Resolved [red.green.blue](https://wordpress.org/support/users/redgreenblue/)
 * (@redgreenblue)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/hanging-noscript-tag/)
 * The plugin doesn’t check for the presence of ‘<script’ at the start of the site
   admin’s input before deciding whether to wrap the code in script tags. It just
   wraps their input in the script tag regardless.
 * This can result in invalid javascript scripts where <noscript> tags are included,
   eg:
 *     ```
       <script type='text/javascript'>
       <script type='text/javascript'>
       ...
       </script>
       <noscript>...</noscript>
       </script>
       ```
   
 * Leaving out the initial script tag results in
 *     ```
       <script type='text/javascript'>
       ...
       </script>
       <noscript>...</noscript>
       </script>
       ```
   
 * Although <noscript> isn’t very popular these days (we all assume that all visitors
   have javascript enabled), it is still good practice.
 * [https://wordpress.org/plugins/custom-css-js/](https://wordpress.org/plugins/custom-css-js/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [SilkyPress](https://wordpress.org/support/users/diana_burduja/)
 * (@diana_burduja)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/hanging-noscript-tag/#post-7259254)
 * Hi,
 * I just released the 2.0 version of the plugin. Now there is a check for the “
   <script ..>….</script>” in the content and doesn’t add the <script> tags if already
   found.
 *  Thread Starter [red.green.blue](https://wordpress.org/support/users/redgreenblue/)
 * (@redgreenblue)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/hanging-noscript-tag/#post-7259256)
 * You are incredibly responsive to support requests.
 * Thank you 🙂
 *  Thread Starter [red.green.blue](https://wordpress.org/support/users/redgreenblue/)
 * (@redgreenblue)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/hanging-noscript-tag/#post-7259257)
 * I have just updated and can confirm that, on my site at least, this now works:
   a script that contains both <script…> and <noscript> elements works correctly.
 * Thank you again.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Hanging noscript Tag’ is closed to new replies.

 * ![](https://ps.w.org/custom-css-js/assets/icon-128x128.png?rev=1303730)
 * [Simple Custom CSS and JS](https://wordpress.org/plugins/custom-css-js/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-css-js/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-css-js/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-css-js/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-css-js/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-css-js/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [red.green.blue](https://wordpress.org/support/users/redgreenblue/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/hanging-noscript-tag/#post-7259257)
 * Status: resolved