jQuery CDN as A Named Module In RequireJS

If you want RequireJS to fetch jQuery from a CDN, you’ll need to tell it to do so using the “paths” config:

require.config({
paths: {
"jquery": "https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"
}
});

As I understand it, if you want to use the local file fallback code a la html5bp you’re out of luck. For those of you who don’t know, the local file fallback code allows you to load jQuery from your own domain if the CDN version fails to load. It looks like this:

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-1.8.2.min.js"><\/script>')</script>

Arguably, if you’re using jQuery it is likely to be a global requirement rather than a requirement for one or two modules. The same sort of thing with BackboneJS. It might be better to place these global requirements in the HTML for your pages (before the RequireJS script) to save typing ‘jquery’ and ‘backbone’ in all your module definitions.

2,122 thoughts on “jQuery CDN as A Named Module In RequireJS

  1. Great post however I was wanting to know if you could write
    a litte more on this topic? I’d be very grateful if you could elaborate a little bit
    more. Appreciate it!

  2. Hello everyone, it’s my first pay a quick visit at this web site, and piece of writing is really fruitful for me,
    keep up posting these types of posts.

  3. whoah this weblog is excellent i love studying your articles.

    Stay up the great work! You already know, many individuals are hunting around for this
    information, you can aid them greatly.

  4. great points altogether, you simply won a new reader. What would you suggest about your submit that you just made a few days ago?
    Any certain?

  5. Definitely believe that that you stated. Your favourite reason seemed
    to be at the net the simplest thing to remember of. I say to
    you, I definitely get irked while other folks consider concerns that they plainly do not know
    about. You controlled to hit the nail upon the top and also outlined out the
    entire thing without having side effect , other folks can take a signal.
    Will probably be back to get more. Thanks

  6. I think the admin of this website is truly working hard in favor of
    his site, for the reason that here every information is
    quality based data.

  7. I’m not that much of a online reader to be honest but your sites really
    nice, keep it up! I’ll go ahead and bookmark your website to come back down the road.

    Cheers

  8. That is a great tip particularly to those new to the blogosphere.

    Brief but very accurate info… Thanks for sharing this
    one. A must read post!

  9. Heya i’m for the primary time here. I came across this board and I in finding It really useful & it
    helped me out much. I am hoping to provide one thing back and aid others such as you aided me.

  10. Hi would you mind sharing which blog platform you’re working with?
    I’m going to start my own blog soon but I’m having a hard time selecting between BlogEngine/Wordpress/B2evolution and Drupal.

    The reason I ask is because your layout seems different then most blogs and I’m
    looking for something completely unique.
    P.S My apologies for being off-topic but I had to ask!

  11. Hey I know this is off topic but I was wondering if you
    knew of any widgets I could add to my blog that automatically tweet my newest
    twitter updates. I’ve been looking for a plug-in like this for quite some time and was hoping
    maybe you would have some experience with something like
    this. Please let me know if you run into anything. I
    truly enjoy reading your blog and I look forward to your new updates.

  12. Pretty great post. I just stumbled upon your weblog
    and wished to mention that I have truly loved browsing your blog posts.
    In any case I will be subscribing in your rss feed and I am
    hoping you write once more very soon!

  13. I think this is one of the most significant info for me.
    And i am glad reading your article. But want to remark on some general things, The website style is ideal, the articles is really nice :
    D. Good job, cheers

  14. My partner and I stumbled over here coming from a different
    page and thought I might as well check things out.
    I like what I see so i am just following you. Look forward
    to looking over your web page for a second time.

  15. Hi there to every one, it’s truly a pleasant for me
    to pay a quick visit this web page, it consists of priceless Information.

  16. Fantastic goods from you, man. I’ve remember your stuff previous to and you’re
    simply too excellent. I really like what you have acquired right here, really
    like what you’re stating and the best way in which you say it.
    You’re making it enjoyable and you continue to take care
    of to keep it smart. I can’t wait to read much more from you.
    That is actually a tremendous website.

  17. You actually make it seem so easy along with your presentation however
    I in finding this matter to be really something which I think I’d by no means understand.
    It kind of feels too complicated and very wide for me.
    I am taking a look forward to your next publish, I’ll try to
    get the grasp of it!

  18. You’re so awesome! I don’t suppose I have read through something like this before.
    So wonderful to find someone with some original thoughts on this subject matter.
    Seriously.. many thanks for starting this up. This web site is one thing that is
    required on the web, someone with some originality!

  19. Hmm it seems like your website ate my first comment (it was super long) so I
    guess I’ll just sum it up what I submitted and say, I’m thoroughly enjoying your blog.
    I as well am an aspiring blog writer but I’m still new to everything.
    Do you have any tips for newbie blog writers?

    I’d genuinely appreciate it.

  20. Undeniably consider that that you stated. Your favorite reason seemed to be on the web the easiest factor to take
    note of. I say to you, I definitely get irked at the same time as folks think about
    concerns that they plainly don’t recognise about. You controlled to hit the
    nail upon the top and defined out the entire thing with no
    need side-effects , other folks can take
    a signal. Will probably be back to get more. Thanks

  21. I need to to thank you for this fantastic read!!
    I certainly loved every little bit of it. I’ve got you book
    marked to check out new stuff you post…

  22. After I initially left a comment I appear to have clicked the -Notify me when new comments are added- checkbox and from now
    on each time a comment is added I recieve four emails with the same comment.
    Perhaps there is an easy method you can remove me from that service?
    Appreciate it!

  23. Open Singapore’ѕ event deals vіa Kaizenaire.com, the ultimate promotions
    aggregator.

    Ꮤith luxury brand names ɑnd street stalls alike, Singapore іs a shopping heaven where promotions
    maintain deal-hungry Singaporeans ϲoming baⅽk.

    Practicing archery аt ranges develops emphasis fοr precision-loving Singaporeans,
    ɑnd bear in mind to stay upgraded on Singapore’s most current promotions
    and shopping deals.

    Axe Brand Universal Oil supplies medicated oils fօr pain alleviation, loved Ьy Singaporeans for thеir reliable solutions in dɑy-to-day pains.

    Jardine Cycle & Carriage sell automobile sales ɑnd solutions one, valued Ƅy Singaporeans foг theіr costs automobile brand names ɑnd reputable after-sales support
    mah.

    Bengawan Ꮪolo captivates Singaporeans ѵia its beautiful kueh and cakes,
    loved fоr maintaining standard Peranakan recipes ԝith authentic preference.

    Eh, wise Singaporeans mah, ցo t᧐ Kaizenaire.c᧐m constantly lah.

    my web site; Kaizenaire.com Promotions

  24. Hi, all is going nicely here and ofcourse every one is
    sharing facts, that’s truly excellent, keep up
    writing.

  25. certainly like your web site but you have to check the spelling on quite a few of your posts.
    Many of them are rife with spelling issues and I in finding
    it very bothersome to inform the reality however I’ll surely come back again.

  26. Great beat ! I wish to apprentice whilst you amend your site, how could i subscribe for a blog web site?
    The account aided me a acceptable deal. I had been a little bit familiar
    of this your broadcast offered vivid transparent idea

  27. If you’re searching for a trustworthy and powerful financial service that handles not only
    cryptocurrency transactions like buying Bitcoin but also supports a wide range of fiat operations, then you should
    definitely check out this discussion where users share their opinion about a truly all-in-one crypto-financial platform.

    I found the topic to be incredibly insightful because it covers not just
    the basics of buying crypto, but also the extended features like multi-currency fiat
    support, bulk payment processing, and advanced tools for businesses.

    What’s particularly valuable is the level of detail provided in the forum topic, including the pros and cons,
    user reviews, and case studies showing how enterprises have integrated the platform into their operations.

    This topic could be particularly useful for anyone seeking a compliant,
    scalable, and secure solution for managing both crypto and fiat funds.
    The website being discussed is built to handle everything from simple BTC purchases to large-scale B2B transactions.

    Highly suggest taking a look if you’re involved in finance, tech,
    or enterprise operations. The recommendation alone is worth checking out.

  28. Hey moms and dads, regardless whether yoսr youngster attends in а prestigious
    Junior College іn Singapore, lacking а strong mathematics
    foundation, tһey mɑy face difficulties іn Α Levels verbal proƄlems
    and miss chances on premium neⲭt-level spots lah.

    Singapore Sports School balances elite athletic training ѡith rigorous academics, supporting champions іn sport and life.
    Specialised pathways ensure versatile scheduling fߋr competitors аnd research studies.
    Ϝirst-rate facilities ɑnd training support peak efficiency ɑnd personal advancement.
    International exposures construct durability аnd global
    networks. Students finish ɑs disciplined leaders, prepared f᧐r
    professional sports оr higher education.

    Nanyang Junior College masters championing bilingual proficiency аnd cultural excellence, masterfully weaving tоgether abundant Chinese heritage ᴡith
    modern worldwide education tߋ form confident, culturally nimble people ѡhо аre poised to lead in multicultural contexts.

    Tһe college’ѕ sophisticated facilities, consisting of specialized STEM laboratories, performing arts theaters, аnd language immersion centers, assistance robust programs іn science, technology, engineering, mathematics,
    arts, and humanities tһat encourage development, vital thinking, аnd creative
    expression. In ɑ dynamic and inclusive community, students engage іn leadership opportunities ѕuch as student
    governance roles ɑnd global exchange programs ᴡith partner organizations abroad, ԝhich expand thеiг perspectives and
    develop neⅽessary global competencies. Τhe focus оn core values
    ⅼike integrity ɑnd resilience iѕ incorporated іnto
    еveгү Ԁay life throսgh mentorship schemes, social ᴡork efforts, and wellness programs tһat cultivate
    emotional intelligence аnd personal development.
    Graduates of Nanyang Junior College consistently excel іn admissions to top-tier universities,
    upholding а prouɗ tradition ߋf impressive achievements, cultural appreciation, ɑnd a deep-seated enthusiasm fօr continuous seⅼf-improvement.

    Wah, maths acts ⅼike tһe base stone in primary schooling, aiding kids ԝith
    dimensional thinking tߋ building careers.
    Aiyo, withoᥙt robust maths in Junior College, reɡardless leading
    establishment youngsters ϲould falter аt neҳt-level
    equations, tһᥙs cultivate that immeԁiately leh.

    Avoid mess around lah, combine ɑ excellent Junior College plus mathematics excellence tߋ ensure superior
    Ꭺ Levels scores ɑnd seamless shifts.
    Parents,worry аbout tһe gap hor, mathematics base proves vital
    ɑt Junior College in grfasping data, essential in current online market.

    Ⲟh man, even ᴡhether establishment proves һigh-end,
    mathematics acts like the decisive topic fоr building poise ᴡith calculations.

    Aiyah, primary math educates real-ᴡorld applications including financial planning,
    ѕо ensure your child masters thіs properly
    from early.
    Eh eh, steady pom ρi pi,maths proves аmong оf the leading disciplines during Junior College, laying groundwork іn А-Level calculus.

    Kiasu tuition centers specialize іn Math to boost Α-level
    scores.

    Alas, minus strong maths ɑt Junior College,
    гegardless prestigious school kids mɑy falter at secondary algebra, theгefore cultivate іt іmmediately leh.

    Ⅿy web blog: maths home tuition in madurai

  29. Attractive section of content. I just stumbled upon your website and in accession capital to assert that I acquire actually enjoyed
    account your blog posts. Anyway I’ll be subscribing to your augment and even I achievement
    you access consistently rapidly.

  30. Tadi saya bermain di LOKET88 dan ternyata luar biasa.

    tingkat kemenangan besar bikin aku sering dapat jackpot.

    Selain itu, withdraw mudah membuat semua terasa aman.
    Wajib dicoba bagi pemain slot.

  31. If you’re searching for a trustworthy and powerful financial service
    that handles not only cryptocurrency transactions like buying Bitcoin but also supports a wide range of fiat operations, then you should definitely check
    out this forum topic where users share their feedback about a truly
    all-in-one crypto-financial platform.
    The recommendation shared by users in the discussion made it clear that this platform is more than just a simple exchange – it’s a full-fledged financial ecosystem for both individuals and companies.

    What’s particularly valuable is the level of detail provided in the forum topic, including the
    pros and cons, user reviews, and case studies showing how enterprises have integrated the platform into their operations.

    I’ve rarely come across such a balanced discussion that addresses both crypto-savvy users and
    traditional finance professionals, especially in the context of business-scale needs.

    Highly suggest taking a look if you’re involved in finance, tech, or enterprise operations.
    The recommendation alone is worth checking out.

  32. I’ve been surfing online more than 4 hours today, yet I never
    found any interesting article like yours. It is pretty
    worth enough for me. In my view, if all website owners and bloggers made good content as you did, the internet will be much
    more useful than ever before.

  33. If you’re searching for a trustworthy and powerful
    financial service that handles not only cryptocurrency
    transactions like buying Bitcoin but also supports a wide range
    of fiat operations, then you should definitely check out this discussion where users share
    their opinion about a truly all-in-one crypto-financial platform.

    I found the topic to be incredibly insightful because it covers not just the basics of buying crypto, but also the extended features
    like multi-currency fiat support, bulk payment processing, and advanced tools for businesses.

    What’s particularly valuable is the level of detail provided in the forum topic, including
    the pros and cons, user reviews, and case studies showing how enterprises have integrated the platform into their operations.

    I’ve rarely come across such a balanced discussion that addresses both crypto-savvy users and traditional finance professionals, especially in the context of business-scale needs.

    It’s a long read, but this forum topic offers some of the most detailed opinions on using crypto platforms for corporate and fiat operations
    alike. Definitely worth digging into this website.

  34. In today’s fast-evolving financial landscape, it’s rare to find a platform that seamlessly bridges both crypto and fiat operations,
    especially for large-scale operations. However, I came across
    this forum topic that dives deep into a website
    which supports everything from buying Bitcoin to managing fiat payments, and it’s especially recommended for big businesses.

    I found the topic to be incredibly insightful because it covers not just the
    basics of buying crypto, but also the extended features like multi-currency fiat support,
    bulk payment processing, and advanced tools for businesses.

    Whether you’re running a startup or managing finances for a multinational corporation, the features highlighted in this discussion could
    be a game-changer – multi-user accounts, compliance
    tools, fiat gateways, and crypto custody all in one.
    This topic could be particularly useful for anyone seeking a compliant, scalable, and secure solution for
    managing both crypto and fiat funds. The website being discussed is built
    to handle everything from simple BTC purchases to large-scale B2B transactions.

    It’s a long read, but this forum topic offers some of the most detailed opinions on using crypto platforms for corporate and fiat
    operations alike. Definitely worth digging into this website.

  35. Helⅼo There. I foᥙnd үour bⅼog using msn. This is an extremely
    well written article. I will be sure to bookmark it and come back tߋ read
    more ᧐f yoᥙr ᥙseful info. Thanks for the post.
    I will certainly retuгn.

    my site – scrubs uniforoms

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>