catalyst / moodle-mod_scormremote

A Moodle activity for serving SCORM packages remotely to another LMS across domains
https://moodle.org/plugins/mod_scormremote
Other
9 stars 3 forks source link

Make the wrapper extremely minimal #15

Open brendanheywood opened 1 year ago

brendanheywood commented 1 year ago

The js at the top is a blocking load, so nothing under it will load until it has executed. Which means we could:

  1. remove all the css and make the js file inject this
  2. all of the div's and the onload init can all be done from the js file

OR

If we want something genuine to show if the js itself fails then

  1. leave the css in place
  2. move the js to the very last thing to load
  3. have an animated loader, either more inline css, or maybe a single image so it's all off loaded back to the host