Option to use hosted css/js

8 views
Skip to first unread message

Oscar Levin

unread,
Jun 16, 2026, 5:18:03 PM (4 days ago) Jun 16
to PreTeXt development
I'm getting close on the SCORM builds so that they work in blackboard for assignments as well as the other LMS's.  One thing I've noticed though is that creating a scorm package of a single html page creates a zip file at over 14MB.  If I set this to be a portable build, that drops to about 130KB.  

Since these archives need to be uploaded to the LMS and might be emailed around to other instructors, it would be nice to not bundle all the JS in the archive.   A few options:
  1. Educate instructors to set portable="yes" in publication whenever they build a scorm file.
  2. Automatically set portable="yes" for scorm builds.
  3. Add a new publisher switch that prefers remote/hosted javascript and css, and make it's default with scorm be to use the hosted version
  4. Don't add a new publisher variable, but internally always use remote/hosted javascript for scorm.
1 and 2 are really not ideal, since the portable build also messes up interactives and annotated prefigures (and maybe some other things).  4 would be easiest, but while I'm touching the code, it would be relatively easy to add the new publisher variable.  

Thoughts?

Jason Siefken

unread,
Jun 17, 2026, 11:53:04 AM (3 days ago) Jun 17
to prete...@googlegroups.com
I would vote for option 1.

I am generally not a fan of CDNs (jsdelivr was down yesterday) and when I upload something to my LMS I expect it to work for years to come, so I want fully contained setups. I also suspect that some people may try to use LMS quizzes in "locked down" environments that may block connections to external domains.

I do think we could make the option more discoverable, though. The CLI could ouput a warning if the bulded size is large (>2mb of JS + CSS assets?) explaining that setting `portable="true"` in the publisher file could reduce the size, and then linking to a relevant page in the Guide.

I would vote strongly against 3 and 4. Isn't the point of publisher files that you have multiple ones for different targets?
--
You received this message because you are subscribed to the Google Groups "PreTeXt development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pretext-dev...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/pretext-dev/e3f15a67-4ae1-4937-877c-75fd6760f5c0n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages