Forum Discussion

ArchiveUser's avatar
ArchiveUser
Qrew Captain
8 years ago

Accessing jQueryUI and D3js via quickbasecdn or host within my site

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?
  • MCFNeil's avatar
    MCFNeil
    Qrew Captain
    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.
  • 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).
  • 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? 
  • 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.