1

!rant
I just found out I don't need to download jQuery to use jQuery. If I can just include jQuery in the <script> tag in order to load it into my HTML doc, what is the download for?

Comments
  • 4
    Downloading jQuery is for people who use Grunt workflow to combine all their JS files including dependencies into one file for better page performance. For a beginner it's not a bad idea to just use Google CDN hosted jQuery in your HTML page.
  • 1
    Is Google CDN jQuery different from jQuery CDN? Also I've noticed the word 'ajax' in someone else's jQuery script code, what does Ajax has to do with jQuery script? Thanks! @code-god
  • 0
    Ping the CDN link in your terminal, find the fastest one. and ping your website in your terminal. Generally, the CDN will win, they have locations on every continent.
  • 1
    What is the ping for? :D @JavaRules
  • 3
    @popcorn are you trolling? Oh you are trolling!
  • 6
    @popcorn it tells you how many fair dust units per second it takes for your jQuery file to magically appear ;)
  • 1
    Wut?? Please point out what you think I am trolling about. I just don't know much about stuff in dev world. @mundo03
  • 0
    Alright...hmm, I will digest that in the coming years :) @JavaRules
  • 1
    @popcorn what OS do you have? I'll guide you through it
  • 0
    @popcorn your webpage needs to execute the script before they can use the page, right? But even before that, you need to download the script. So, the difference is that one may be faster, so the script can download faster, and the page can load faster. The ping is used to see which download will be faster.
Add Comment