515 posts
  • Has sold $10,000+ on Envato Market
  • Has been part of the Envato Community for over 3 years
  • Sells items exclusively on Envato Market
  • Won a Most Wanted contest
+2 more
rayoflightt says

I just got my template soft rejected with following explanation:

“JavaScript files need to be placed at the bottom, barring critical exclusion. [Modernizr, for instance] JavaScript loaded directly into HTML documents (template files) should be CDATA encoded to prevent errors in older browsers. The javascript should be JSHint compliant. Make sure the CSS file is well documented with proper table of content.”

I use the same scripts as I used for my previous templates and never got this kind of requirement. Actually I don’t understand what should I do with scripts. “CDATA encoded and JSHint compliant. What is that supposed to mean? I make template for ie8 and above.

Did someone got the same requirement and can give me an advice? Thanks.

1057 posts It's in the pipeline!
  • Has sold $500,000+ on Envato Market
  • Has been part of the Envato Community for over 6 years
  • Elite Author: Sold more than $75,000 on Envato Market
  • Sells items exclusively on Envato Market
+7 more
purethemes says

Run your JS through this http://www.jshint.com/ and keep it in the bottom instead of header. That’s all you need.

515 posts
  • Has sold $10,000+ on Envato Market
  • Has been part of the Envato Community for over 3 years
  • Sells items exclusively on Envato Market
  • Won a Most Wanted contest
+2 more
rayoflightt says

purethemes, thanks I’ll try that. But it seems this is a new TF requirement.

3072 posts
  • Has referred 50+ members
  • Has sold $40,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Had an item featured on Envato Market
+5 more
wickedpixel says

The js in the footer rule seems a pretty radical move. Or full jsHint compliant. Probably you had really bad code and they enforced you to use this rules in order to make you repair stuff. Hm.

109 posts
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 1+ items on Envato Market
+4 more
designedbydash says

Throw the JS to the bottom of the page and don’t worry too much about the JSHint, typically if you move the JS to the bottom that satisfies that criteria. We got soft rejected with that notice and merely moved the JS and we got approved :)

515 posts
  • Has sold $10,000+ on Envato Market
  • Has been part of the Envato Community for over 3 years
  • Sells items exclusively on Envato Market
  • Won a Most Wanted contest
+2 more
rayoflightt says

The js in the footer rule seems a pretty radical move. Or full jsHint compliant. Probably you had really bad code and they enforced you to use this rules in order to make you repair stuff. Hm.

Actually that are common scripts -jquery.js, camera.js, flex.js etc. I don’t have my js code written. And as I said all scripts were used before. So how could I validate all jquery.js library? That is crazy.

109 posts
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 1+ items on Envato Market
+4 more
designedbydash says


The js in the footer rule seems a pretty radical move. Or full jsHint compliant. Probably you had really bad code and they enforced you to use this rules in order to make you repair stuff. Hm.
Actually that are common scripts -jquery.js, camera.js, flex.js etc. I don’t have my js code written. And as I said all scripts were used before. So how could I validate all jquery.js library? That is crazy.

Check out my reply, don’t worry about the JSHint :)

515 posts
  • Has sold $10,000+ on Envato Market
  • Has been part of the Envato Community for over 3 years
  • Sells items exclusively on Envato Market
  • Won a Most Wanted contest
+2 more
rayoflightt says

Throw the JS to the bottom of the page and don’t worry too much about the JSHint, typically if you move the JS to the bottom that satisfies that criteria. We got soft rejected with that notice and merely moved the JS and we got approved :)

I’ll try that, thanks.

815 posts
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Contributed a free file of the month
+3 more
rvision_ says

The js in the footer rule seems a pretty radical move. Or full jsHint compliant. Probably you had really bad code and they enforced you to use this rules in order to make you repair stuff. Hm.

Js in the footer is the way to go: http://developer.yahoo.com/performance/rules.html

3072 posts
  • Has referred 50+ members
  • Has sold $40,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Had an item featured on Envato Market
+5 more
wickedpixel says


The js in the footer rule seems a pretty radical move. Or full jsHint compliant. Probably you had really bad code and they enforced you to use this rules in order to make you repair stuff. Hm.
Js in the footer is the way to go: http://developer.yahoo.com/performance/rules.html
Even they don’t place js in the footer in that page. They even have big code blocks inside the body tag.
Stupid or what?
Anyway… those are “best practices”... not critical requirements in order to make stuff to work.

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by