79
ddit
4y

Just spent 30 minutes trying to work out why my page will not load a JavaScript file even though I could manually browse to the file:

<link rel="stylesheet" type="text/js" href="js/home.js" />

I then proceeded to take a 5 minute walk around the office and rethink my life decisions...

Comments
  • 6
    😂😂😂😱🤦‍♂️😂😂😂😂
    This is gold!
  • 3
    Now you know you dont have to self close the <link> tag. HTML senior engineer here
  • 1
    @sandeepbalan mostly a habit I have
  • 2
    Also, drop the type nonsense for regular CSS and JS. Plus that "text/js" is the wrong MIME type anyway.
Add Comment