Site freeze on checking answers(fill in the blank)

Good day,

The problem:

I made "Fill in the blanks" quiz for my site, 15 questions. After you finish - it freeze website and browser. Then after 10-15s. it does show the result and unfreeze. I bet it's that "star" result thing loading cause the freeze. I tried to make *fill in the blanks* with 1-5 questions(blanks) - it does work fast.

Following your rules, info below:

1. Detailed steps to reproduce the bug (exactly how and when did it happen)

Create *Fill in the blanks* quiz - 15 questions, tried both in separate text blocks and in one text block

2. Platform and version number. E.g. Drupal, Wordpress, Moodle.

Wordpress 5.2.1 with current H5P Version 1.13.1

3. Mobile or Desktop

Both. 

4. Browser: Chrome, Firefox, Safari etc

Chrome and Opera

5. H5P plugin version

Version 1.13.1

6. H5P content type and version (if a content type was used), and a sample URL or attached H5P.

Content type: Fill in the blanks. Sample URL: https://bestquizes.co.uk/geography/what-is-it-landmarks/
7. Any browser console errors

None I guess
8. Any PHP errors

None. I guess it's the problem with jquery??

10. Any recent changes to the environment (new plugins/modules, updates, configuration changes etc.)

I added my own .css, followed documentation here. Tried removing it - still same problem.

 

BV52's picture

Hi bestquizes,

Can you please check using a different connection or device, I just tried the site and all seems well except the initial loading of the site which took me about 10-20 secs.

-BV52

Thank you for your reply,

Site does load slowly sometimes, don't really know the cause, maybe hostinger...

Anyway, it was checked on iPhone, my android phone and laptop(both opera and chrome) and it still does freeze.

Thank you for your reply,

The site loads slowly sometimes, I don't know why, maybe the hosting...

Anyway, it was tested on iPhone 7plus, my android phone(chrome) and laptop (both chrome and opera). I just checked it again - it still freezes.

P.S. My previous comment was not published, so I post it again.

BV52's picture

Hi bestquizes,

My best bet is that it is a connection/hosting issue. I tried using a different connection and I was able to reproduce the issue to a certain degree.

-BV52

otacke's picture

Hi bestquizes!

It's a computational problem. H5P has to compute all combinations of answers that are correct for reporting, and if you use 15 blanks with multiple correct options each, this simply gives the browser quite some work to be done.

Best,
Oliver