Simon-Initiative / oli-torus

Next Generation OLI Authoring and Delivery Platform
https://proton.oli.cmu.edu
MIT License
83 stars 35 forks source link

[BUG FIX] [NG23-212] fix an issue where loading all activity scripts when beginning attempt crashes page #4860

Closed eliknebel closed 3 months ago

eliknebel commented 3 months ago

https://eliterate.atlassian.net/browse/NG23-212

This PR fixes an issue where beginning an attempt tried to load all activity scripts, which ultimately fails and shows an error message to the user because of another issue which was identified and captured in https://eliterate.atlassian.net/browse/NG23-233

The fix here is to actually be smarter about which scripts are being loaded when beginning an attempt. By assigning only the scripts required by the page when starting the attempt, we can avoid the error and optimize the assets being loaded.