Day 2: Rehashing jQuery Basics | Tiffany R. White Blog

Day 2: Rehashing jQuery Basics

Reading time: 1 min


So today I went over jQuery basics, documentation and a total disruption of what I learned on Free Code Camp and Codecademy.

At both Free Code Camp and Codecademy I learned to write:

[code language=”javascript”]$(document).ready[/code]

before all the other code to help load the DOM before the rest of the page gets loaded. Without that, the wisdom was, some of your code wouldn’t load first, animations, etc would break because they were loaded a little down further in your js document.

But throughout Treehouse courses we always put the script tags at the end of the HTML document, right before the end


tag. This loads the document first before any JavaScript or jQuery.

So imagine my surprise when we were writing:

[code language=”javascript”]$(“.warning”).hide().show(“slow”);[/code]

without the

[code language=”javascript”]$(document).ready[/code]

at the top of the document.

Basically it was all videos. I’ll post more tomorrow as I do it. Excited about my progress.


No Ads. No Sponsored Content. Ever.

I've decided that I no longer want to have sponsored posts on this blog. I also, though as tempting as it may sound, don't want ads; even if I got big enough for Carbon ads I don't want them. I want to post free, engaging content for beginning/junior devs. This means that I won't have Setapp posts or affiliates on this blog, though I will keep them on the Uses page. If you enjoy the content, buy me a coffee. Just click the button below.

Coffee Buy me a coffeeBuy me a coffee

Webmentions 0

No webmentions were found.