CSS not loading when using <noscript> tag

October 13, 2014 5.9k views


I’ve setup my droplet today (Ubuntu 14.04 x64) and nameservers for my domain. I Installed lamp on my server and I configured SFTP. I uploaded my website and template for it is here

And when I went to see how my site looks it didn’t have any CSS. In the template all css is being called like this.

            <link rel="stylesheet" href="css/skel.css" />
            <link rel="stylesheet" href="css/style.css" />
            <link rel="stylesheet" href="css/style-noscript.css" />

I removed <noscript> tag and site wasn’t responsive. I know it is the hostings problem because before DigitalOcean I was on Bluehost. And there it worked fine.

If anyone can help me with this problem I would be really thankful because I really like DigitalOcean.

Thank you in advance.

  • Chempo
4 Answers

Failed to load resource: the server responded with a status of 404 (Not Found) http://chempo.com/js/init.js
Failed to load resource: the server responded with a status of 404 (Not Found) http://chempo.com/css/images/overlay.png

  • something really weird is going on. For me it now loads old site from bluehost

  • DNS takes time to propagate.

  • yeah I know about www. thing. But when I go to my site over IP address (one that is hosted on DO) it breaks the site completely.

  • You should clear your cache. If that doesn’t fix it, open your console and check what it says.

  • in browser cache?

  • ok, soo I went on Inspect Element in chrome and under Resources I deleted cookies. Now everything somehow works. Sometimes Web Dev is really weird.

    Thanks for the help. Oh one thing. What exactly do I need to do for www. thing in DNS?

  • Add an CNAME record for www.chempo.com and point it to chempo.com

  • Thanks. I got it working.

  • Ok I need your help again Woet. Soo for me and two friends site is loading old site form bluehost. But for my other two friends it loads new design. What the hell? I cleared every possible cookie and cache. My mind is blown with this.

    If you know or think you know where the problem is please tell me.

What is the domain?

Have another answer? Share your knowledge.