Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7926499
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T18:47:50+00:00 2026-06-03T18:47:50+00:00

Best practice dictates that my website that is heavily reliant on Jquery, and JQuery

  • 0

Best practice dictates that my website that is heavily reliant on Jquery, and JQuery UI, which it sources from Google’s CDN, should have a fallback in case that CDN fails for some reason.

My question is, how do I go about doing this for a given theme? If it matters, I am using the Redmond theme.

Currently I plan to use code something like:

 if(!jquery){//load local file instead; }
    else if(!jquery.ui){//load local file instead; }

But I’d like a fallback for the theme file being loaded from Google too, if possible.

Any ideas? 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T18:47:55+00:00Added an answer on June 3, 2026 at 6:47 pm

    Use http://yepnopejs.com/

    It is a resource loader and works great with CSS files as well. Give that a try, the example is present on their webpage.

    Also this is a repeat question from:

    How to fallback to local stylesheet (not script) if CDN fails

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've read that best practice dictates fats models, skinny controllers. Models should contain business
The best practice seems to be to use assert for a condition that should
is there a standard rule or best practice which dictates when a custom class/library
As best practice, when using hibernate and spring together which transaction management should I
What is the best practice for generating valid XML with PHP from user submitted
the best practice to post youtube videos on website is through using iframes or
Which best practice involved in software configuration management to help in improving project management?
What is the best practice about HTML tags in internationalized strings. Is that OK
I have an Asset object that has a property AssignedSoftware, which is a collection.
What's the best practice for making sure that certain ajax calls to certain pages

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.