Welcome to the Treehouse Community
Looking to learn something new?
If you're loading the function last, wouldn't the warning message be shown until the Jquery function is ran to hide it?
Since the DOM is loading before the JS files, that warning message is going to show until the scripts are ran, right? So the warning class should be hidden by default I would imagine. Is that as simple as giving it a display:none as a default in the css?
Chris Shaw26,650 Points
If you want to be on the safe side using CSS can be a much better option but depending on your accessibility requirements you will need to be careful as a property such as
display with a value of
none will cause the element to become invisible to screen readers.
Hope that helps.