Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Failed to load resource Github pages

I’ve been working on this script to keep track of my finished front-end challenges but I’m getting this error saying that it cannot load the recources but the first one works perfectly. I attached an image with the console messages here.

Also, that error I’m getting only when the site is deployed on GitHub pages, on local works perfectly . Any tips to fix that problem?

Link repo: https://github.com/trstefan/fmtracker

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Change absolute path to relative path in script.js

  img.src = `./${project}/design/desktop-design.jpg`;
  projectLink.href = `./${project}/index.html`;
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading