Skip to main content
Question

Accessing jQueryUI and D3js via quickbasecdn or host within my site

  • April 18, 2017
  • 0 replies
  • 63 views

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?
This topic has been closed for replies.

  • Quickbase Alumni
  • April 18, 2017
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.

  • Quickbase Alumni
  • April 18, 2017
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).

  • Author
  • Quickbase Alumni
  • April 18, 2017
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? 

  • Quickbase Alumni
  • April 18, 2017
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.

  • Author
  • Quickbase Alumni
  • April 18, 2017
By my site I mean QB.  Your explanation above is perfect.

Thanks.