raccoongang / edx_xblock_scorm

XBlock to display SCORM content within the Open edX LMS. Editable within Open edx Studio. Will save student state and report scores to the progress tab of the course. Currently supports SCORM 1.2 and SCORM 2004 standard.
Apache License 2.0
32 stars 65 forks source link

Very slow in making the interactive things #30

Open kesavkolla opened 4 years ago

kesavkolla commented 4 years ago

What I'm observing is it's awfully slow when we try to play a simulation. What I see happening is whenever we do some click etc... there are several XHR calls that being made to do scorm_set_value. Current code is making a $.ajax call where async is being set to false. This is making the user experience very bad as the user has to wait till all those scorm_set_value APIs are returned in sequence. All these scorm_set_value is adding upto 2secs in my case. Can we safely change to async: true so that all those requests are done in parallel? I've changed in my local installation to test that out functionality seems to be working fine. Don't know will that cause any issue or not.