Add loading indicator to registration form preview

Hi everyone, I’m experimenting with Indico’s registration forms on my local dev setup and noticed that when I click “Preview” on a more complex form, there’s a brief moment where the page is blank and there’s no visual feedback that the preview is loading. I was thinking about adding a small loading indicator (e.g. using the existing Indico spinner/overlay component) that shows while the preview is being generated and disappears once the form is rendered. Before I open a GitHub issue and start working on a PR, I wanted to ask whether this kind of UX change would be welcome

What kind of registration form preview do you mean? Can you share a screenshot? Or do you mean the form view where you setup the fields etc?

To me this sounds more like there’s an issue with your browser, unless you create an absolutely humongous form with thousands of fields I would not expect noticeable delays.

Please create an event on sandbox.getindico.io so we can check it out yourself if you think there’s an actual performance issue - and in any case then the fix should be for the performance issue, not adding a loader animation.

This is about the registration form preview in the management area (where you configure fields, then click “Switch to Display Preview”). On my local dev instance the preview takes about 2–3 seconds to appear. I agree this could be related to my browser or local setup rather than Indico itself so I’ll try to reproduce the same form on the sandbox, and check whether the delay is still there. If I can reproduce it, I’ll share exact steps, browser/version, and maybe a short screen recording so we can see whether it’s a real performance issue.

“Switch to display view” is not a preview, it opens the actual event page, and has nothing to do with registration forms.

And the normal display page of an event should not take ages to load…

Ah, thanks for clarifying you’re right, I mixed up the event “Switch to display view” with the registration form preview.

BTW forgot to mention that I re‑tested on sandbox in an incognito window and checked the Network tab. The main user.js request for the event display shows about 500 ms waiting for server response and well under 1 s total, so the delay is much smaller there and seems to be mainly network latency plus first render. On my local dev instance it still feels closer to 2–3 s, but given the sandbox numbers this looks more like my local environment/network than an Indico issue.