If the site has an older version, load the version we need and namespace it only for Thebelab (e.g. window.thebelab.$.
If the site doesn't have any version, go ahead and load the latest. Add a namespace at window.$.
Last, if the site has the version we currently need, do nothing and use the current (loaded) version. Namespace at window.$.
We'll want add some logic as well to make sure we're pointing at the right namespace, so something like: $ = window.$ ? window.$ : window.thebelab.$, or something similar (with more null checks :))
Based on the comment here: https://github.com/minrk/thebelab/pull/189#issuecomment-621195179, we want to dynamically load jQuery based on what is currently on the page.
window.thebelab.$
.window.$
.window.$
.We'll want add some logic as well to make sure we're pointing at the right namespace, so something like:
$ = window.$ ? window.$ : window.thebelab.$
, or something similar (with more null checks :))