Title: Error in your code for the Head.JS code.
Last modified: August 21, 2016

---

# Error in your code for the Head.JS code.

 *  [onecloud](https://wordpress.org/support/users/onecloud/)
 * (@onecloud)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/error-in-your-code-for-the-headjs-code/)
 * Hi again,
 * I’ve just resolved an issue with your code that was causing none of my Javascript
   to load. Chrome inspection was telling me there was an unexpected “<” in the 
   code.
 * It turns out it was a simple fix, you were just missing the double // before 
   the <![CDATA[
 * See the fix I did on line 203 of your file cleanerpress-professional-3.php
 * **Old Code**
    echo(sprintf(“%s<script src=’%s’ type=’text/javascript’></script
   ><script type=’text/javascript’><![CDATA[\r\n head.js(%s);\r\n]]></script>”
 * **New Code**
    echo(sprintf(“%s<script src=’%s’ type=’text/javascript’></script
   ><script type=’text/javascript’>**//**<![CDATA[\r\n head.js(%s);\r\n**//**]]>
   </script>”
 * [http://wordpress.org/plugins/cleanerpress/](http://wordpress.org/plugins/cleanerpress/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Arevico](https://wordpress.org/support/users/arevico/)
 * (@arevico)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/error-in-your-code-for-the-headjs-code/#post-4153549)
 * thanks, i’ll incorperate it in the next commit/update

Viewing 1 replies (of 1 total)

The topic ‘Error in your code for the Head.JS code.’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/cleanerpress_5f8898.svg)
 * [CleanerPress](https://wordpress.org/plugins/cleanerpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cleanerpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cleanerpress/)
 * [Active Topics](https://wordpress.org/support/plugin/cleanerpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cleanerpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cleanerpress/reviews/)

## Tags

 * [breaks](https://wordpress.org/support/topic-tag/breaks/)
 * [combine](https://wordpress.org/support/topic-tag/combine/)
 * [head.js](https://wordpress.org/support/topic-tag/head-js/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * 1 reply
 * 2 participants
 * Last reply from: [Arevico](https://wordpress.org/support/users/arevico/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/error-in-your-code-for-the-headjs-code/#post-4153549)
 * Status: not resolved