Comments

  1. This is not just if your javascript src is blank. It apparently occurs any time you link to a javascript file that does not exist.

    November 6, 2008 at 11:51 pm |
  2. Thanx a lot man… i was trying to catch this error on a 2500 lines long form… it was crazy.

    March 3, 2009 at 4:42 pm |
  3. I agree! This really helped me a lot. Thanks for the post.

    April 4, 2009 at 12:51 pm |
  4. Lars:

    Thank you! This is really a dodgy error!

    The cause here was, that i referenced a file via src twice in a document!

    April 17, 2009 at 9:24 am |
  5. Impressive. I was just starting with a bare-boned template when this error occurred. It drove me crazy.

    This error also occurs on the WebDevelopper plugin and Transitionnal DTD.

    Thanks.

    May 28, 2009 at 9:34 am |
  6. Thanks so much, this was driving me nuts!

    June 14, 2009 at 8:27 am |
  7. Thank you so much, this really help
    i never thought that empty ‘src’ was the root of this mess :)

    October 6, 2009 at 9:50 pm |
  8. This error appear also when your src=”” points to not existing javascript.

    October 29, 2009 at 6:48 am |
  9. Thanks a lot for helping!
    I thought it was a firebug bug :-)

    January 14, 2010 at 8:03 pm |
  10. Deter:

    Many thanks for this!

    February 7, 2010 at 2:49 am |
  11. thank you.Favorite it.

    April 6, 2010 at 1:38 am |
  12. Aruna:

    Thank you man. I had been trying to figure out this issue for couple of months.

    June 4, 2010 at 5:31 am |
  13. even if you have a valid js document that is 301 0r 302 0r 200 http status, but 0 content length, you will get this error., use firebug to check for 0 length js net requests.

    June 9, 2010 at 9:44 pm |
  14. Thanks, I was a bit confused, haha.

    June 25, 2010 at 3:32 pm |
  15. Shauli Antar:

    Thanks on that !!
    Almost broke the screen for this error ;)

    July 21, 2010 at 7:32 am |
  16. Md. Shafiq Hossain:

    Thanks man. You are life saver! :)

    November 15, 2010 at 6:20 am |
  17. Vinod:

    Many thanks for this!

    February 26, 2011 at 10:52 am |
  18. dudu:

    Thanks man,I get a lot from this article~~

    July 6, 2011 at 10:22 pm |
  19. Tushar:

    great tip. We were able to fix a bug in our site. Thanks a lot!

    July 11, 2011 at 8:55 am |
  20. Great catch. I was wondering what caused this error to pop up in Firebug seemingly in a random fashion. Thanks, Ryan.

    August 30, 2011 at 8:31 am |
  21. duch:

    Thx

    i came across this error in another context : link to a javascript file that does not send javascript back. In this case i had to change type=”text/javascript” to type=”text/html”.

    This post helped a lot, hope this helps too.

    November 14, 2011 at 11:38 am |
  22. Swat:

    When I use your solution, the errors in firebug go away, but it does not execute the contents of the script tag.

    HTML 4.01 Specification:

    The script may be defined within the contents of the SCRIPT element or in an external file. If the src attribute is not set, user agents must interpret the contents of the element as the script. If the src has a URI value, user agents must ignore the element’s contents and retrieve the script via the URI.

    April 20, 2012 at 10:02 am |