reefersativa
12-22-2011, 07:38 AM
Hi,
Im using a authoring tool to develop an elearning test course. The course is composed of several HTML pages with Buttons for the multiple choice test. The setup of the course is that it will only ask 10 questions out of a pool of 30 questions.
When the HTML & JS files are online, the test takes 20-40seconds to load. I believe it is related to the code that selects the 10 questions from the 30.
I've singled out the code that does the select random pages... Is there any way to optimize the code?
I've attached the HTML (in txt format) page where the javascript can be found.
Looking forward to your replies!
Im using a authoring tool to develop an elearning test course. The course is composed of several HTML pages with Buttons for the multiple choice test. The setup of the course is that it will only ask 10 questions out of a pool of 30 questions.
When the HTML & JS files are online, the test takes 20-40seconds to load. I believe it is related to the code that selects the 10 questions from the 30.
I've singled out the code that does the select random pages... Is there any way to optimize the code?
I've attached the HTML (in txt format) page where the javascript can be found.
Looking forward to your replies!