HD Quiz

Is there any way to lazy load quizzes?

Published: May 16, 2024
Support status: closed

Is there any way to lazy load quizzes if they are somewhere in the middle of the content and it’s needed to scroll at least to the second screen to reach them?

thread author: Oleksii

Hi Oleksii,

short answer: no.
There is no built-in way to do this.

medium answer: yes, but I don’t think it will accomplish what I think you want.

I assume you want this so that quiz assets don’t need to load until needed? The problem is that even if you used ajax to get quiz data, the assets (CSS and JS) would still need to be loaded before.

long answer. yes. But will require some modifications on your end

Let me know if you want more info on how to do this. Or you can wait for the next major release (probably sometime late summer) where I will have an experimental AJAX mode. This mode is not for performance though and is instead for users who have page caching enabled and still want quizzes to load in random question/answer order.

If you really care about page performance, you can consider enabling a quiz timer. This hides the quiz behind a “Quiz Start” button. It will not increase asset download times or anything like that, but it should theoretically speed up the initial browser paints

16 May 2024 — 10:44 support admin - Dylan

Respond to thread

This thread has been closed / marked as resolved.
You can reply to this thread, but it might be better to start a new thread if you need help
.

You can also upload images to imgur and paste the links here. Just make sure that your images don't include any sensitive information.

Submit