question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow fallback to hosted js files without cdn

See original GitHub issue

Tried to use graphiql provided by this package on an intranet without an internet connection, horrible experience, everything is loaded from cdn.

Similar issues in other flavours of graphiql, seems like I’m not the only one having this issue. exponentjs/koa-graphiql#1

This was already fixed in the example/ for graphiql itself: graphql/graphiql#135

Could we please have a fallback where if the cdn fails to load the files it loads a local copy?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:4
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ofbeatoncommented, Aug 13, 2016

or perhaps something like bellow? Though the advantage of the local flag is that it wouldn’t even bother trying to hit the external network.

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery.min.js') }}"><\/script>')</script>
0reactions
IvanGoncharovcommented, Jul 1, 2019

CDN usage was completely removed in #524

Read more comments on GitHub >

github_iconTop Results From Across the Web

Allow fallback to hosted js files without cdn · Issue #135 - GitHub
Tried to use graphiql on an intranet without an internet connection, horrible experience, everything is loaded from cdn.
Read more >
How to load local script files as fallback in cases where CDN ...
First try to load the CDN file by inserting a new SCRIPT element into the DOM. Then check that it has loaded by...
Read more >
CDNs fail, but your scripts don't have to - fallback from CDN to ...
Falling back from CDN to local copies of jQuery and JavaScript. The basic idea for CDN fallback is to check for a type...
Read more >
Is there a way to define a JS library that will use a CDN as a ...
Example: Define a billboard.js library that will use the local version of files from libraries directory and fall back to one provided from ......
Read more >
Using jQuery and Bootstrap from a CDN with fallback scripts in ...
In this post I show how to update the default Razor layouts to load CSS and JS files from a CDN, and how...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found