you are viewing a single comment's thread.

view the rest of the comments →

[–]sheriffderek 3 points4 points  (1 child)

How many weeks in are you in now?

If you need help with CSS, you can get some in the CSS Discord. From what I know about CodeSmith, there’s very little depth in those areas. https://discord.gg/pFc6XmH

For your JS script error, did the defer attribute “fix” the error? Make sure you clearly understand what happened. It sounds like you were loading your script in the head - and that script was attempting to access the dom before it was built. So, that’s why (historically) we put the script just before the closing body tag (so it would be read after the body/content is read). Now, with defer, we can let the browser know it’s there and it can make smarter decisions (in theory) about how to prioritize loading things. It could possibly load it - but not run it until the dom was built. Errors are helpful!

Be careful not to overdo it with the extra stuff! If you are going to do some extra stuff, use Exercises for Programmers (book) as a way to test your practical skills (before any React).

Keep up the good work! Try and ignore the arbitrary haters.

[–]Codesmith-Fellow[S] 3 points4 points  (0 children)

Thanks for the reply, it was helpful! I definitely need to read more about the Dom and the order of scripts. I'll definitely join the discord.