Accessing jQueryUI and D3js via quickbasecdn or host within my site

  • 1
  • 1
  • Question
  • Updated 2 years ago
  • Answered
is it better to access jQueryUI and D3 via the QuickBase CDN or should I download the files from their respective sites and store them as a file in my QB server?
Photo of Neil Shepard

Neil Shepard

  • 1,248 Points 1k badge 2x thumb
  • excited

Posted 2 years ago

  • 1
  • 1
Photo of Matthew Neil

Matthew Neil

  • 31,438 Points 20k badge 2x thumb
Just depends on what kind of version control you want to have, and how detailed the code is.

95% of the time just referencing the CDN works well.  In some cases its even faster.
Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 26,512 Points 20k badge 2x thumb
jQueryUI is already loaded on QuickBase's pages (QuickBase uses the calendar widget etc) and D3 is not in QuickBase's CDN (they don't use it).
Photo of Neil Shepard

Neil Shepard

  • 1,248 Points 1k badge 2x thumb
Thanks to both Matthew and Dan, as always very helpful.

To clarify on the D3 portion.  Is it better to host the D3 file on my site or just to call it from Cloudflare?

Plus is there a way to access the CDN to see what is available? 
Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 26,512 Points 20k badge 2x thumb
It is unclear what you mean by "my site". If you intend to use D3 within a QuickBase application I would suggest you load D3 in this manner:
$.getScript("https://d3js.org/d3.v3.min.js";, function() {
  console.log("your code here");
});
If you are using D3 in an externally hosted domain do whatever you want.

Unless you need a D3 feature from version 4 I would stick with using D3 version 3 as indicated above for usage with QuickBase.
Photo of Neil Shepard

Neil Shepard

  • 1,248 Points 1k badge 2x thumb
By my site I mean QB.  Your explanation above is perfect.

Thanks.