Quiz Losing State Causing Skipped Questions
-
I use this plugin in a professional setting and have had issues with the quiz losing state and begin skipping questions for approximately 1.5% of users. This results in the user failing the quiz. In my investigations it seems to occur more often with users utilizing an ad blocker or other security protocols.
When I asked our web developers they said that this is occurring because of the additional code below we add. This code refreshes the page when the browser tab is no longer visible. This is necessary as otherwise the quiz timer does not work properly.
Overall, I would like clarity on 1) Is the below code causing issues with the exam? 2) If so, how do we ensure the timer is correct? 3) Are there minimum system requirements users need to prevent the quiz from losing state?
I tested the quizzes on a M1 mac and can never duplicate the users issues, but I have seen video of the quiz shuffling is causing errors.
Thank you,
document.addEventListener("visibilitychange", function() {
if (document.hidden){
console.log("Browser tab is hidden")
} else {
location.reload();
console.log("Browser tab is visible")
}
});
}
The topic ‘Quiz Losing State Causing Skipped Questions’ is closed to new replies.