Was this a recent change? PreTeXt has been doing it that way
for years.
At minimum I would like the current setup to continue functioning
through this academic year. Here is one of the books we are using,
and it does explicitly load jQuery:
https://books.aimath.org/aata/sets-sage.html
That page is a bit more than 2 years old, and I think it was working
until today.
We can re-evaluate during the summer. Getting rid of the jQuery
dependence is not a problem. The issue is that 100 textbooks are
written in PreTeXt. Not all use sage cells, but all of them have it
working as in the link above.
David
On Fri, 4 Mar 2022, Andrey Novoseltsev wrote:
This is quite unfortunate. The page you linked has
<script>$(function () {
on line 84, i.e. it tries to access jQuery, but had no explicit jQuery loaded.
We used to have instructions
with these dollar signs and you were supposed to load jQuery and
embedded_sagecell. Your page loads only
the latter, but still tries to use jQuery. So on the one hand we can say that
it is your fault and you need
to fix it, but how many other such pages are out there?
There were problems with relying on loading our own jQuery - some pages wanted
to use it for other purposes
and there were versions-settings incompatibilities. To address it, we started including
"private" jQuery,
but I think the way it worked was "use this one internally and set it as an
external as well unless
external is already loaded". With the recent changes we don't expose our jQuery
at all, so users have to
load it explicitly if they rely on it. (And it is NOT needed to make calls to
sagecell.)
So, what should we do?
1) Stick with the current situation - if you call jQuery explicitly, then load
it explicitly as well.
2) Keep indefinitely for backward compatibility the setting of global jQuery if
it was not loaded.
--
You received this message because you are subscribed to the Google Groups
"sage-cell" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
[email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/sage-cell/883f71f2-8348-4c9b-8bc0-b50034724ad6n%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups
"sage-cell" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/sage-cell/alpine.LRH.2.21.2203041059140.17450%40li375-150.members.linode.com.