Skip to main content
coltsfan46224
Participant
September 15, 2015
질문

LMS Error: Synchronous XMLHttpRequest on the main thread is deprecated... because of its detrimental effects to the end user's experience. For more help, check http://xhr.spec.whatwg.org/

  • September 15, 2015
  • 1 답변
  • 2189 조회

We're getting the following error when uploading a Captivate 8 course on a client LMS:

LMS Error: Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check http://xhr.spec.whatwg.org/


A white screen shows, and the course content never loads.


This course functions fine in all versions and all browsers except for this specific new LMS. Interestingly, this is the first version of this course that we've done using Captivate 8, whereas previous versions were published with Captivate 6, and the legacy courses have ported to the new LMS just fine.


It seems to me like this would be an issue with the LMS, and the only reason the Synchronous AJAX would be called would be to set/get data from the LMS...


We'll keep digging on our end, any help or guidance is appreciated.


-Nick

이 주제는 답변이 닫혔습니다.

1 답변

RodWard
Community Expert
Community Expert
September 16, 2015

Have you tried publishing to a different SCORM version for that LMS?

coltsfan46224
coltsfan46224작성자
Participant
September 16, 2015

That's a very good callout Rod! I'll ping our developer in the AM, publish to all the versions we can, send all the packages over for testing, and see what sticks. Thanks for the tip!!

Best.

-Nick

TLCMediaDesign
Inspiring
September 16, 2015

I think your issue is because Captivate uses LazyLoader to load Script files in the following function in the index.html:

var lJSFiles = [  'assets/js/jquery-1.6.1.min.js','assets/js/OpenAjaxManagedHub-all.js','assets/js/CPM.js' ];

      cpXHRJSLoader.js(lJSFiles,function()

      {

       //console.log("js loaded");

       lJSLoaded = true;

       constructDIVs();

      });

This ensures that the CPM.js is loaded before the constructDIVs function is called. I don't think a SCORM version is going to solve the issue.

Your course content is in the CPM.js which is then loaded into DIVs created with the contructDIVs function. The whole index page would need to be re-written to get rid of the cpXHRJSLoader.js.

.