Good Day,
For the most part the works but the code will not load the external JS i.e. <script src=/js/main.js. How do I do this?
Good Day,
For the most part the works but the code will not load the external JS i.e. <script src=/js/main.js. How do I do this?
@hakeemellis You should change the structure that you have from this:
To:
css/styles.css
js/main.js
index.html
_redirects
Having your html files in a folder of html
will be causing you problems.
Fair enough. I made the amendment but still receiving this error:
main.js:1 Failed to load resource: the server responded with a status of 404 ()
Failed to load resource: the server responded with a status of 404 ()
When inspected. For both css and js. This is what I’m trying to solve.
Nevermind. Your suggestion worked. I needed to change the directory from which the file was being read from after.
Thank you Nathan.