Compiling an insurance offer for you. This may take a while.
When some process takes a while it is good to inform the user about what is happening and how it is progressing. One
way to do it is using a separate page, but if page loads are to be avoided, or if we want to keep the context, a loader
modal can be used.
In this example we set the first message (telling what it is we are processing) directly in the modal. If the process
takes more than 10s we use modal's addMessage method to add progress messages with javascript. Once the process is
complete, we can add a non-visual message (using the second parameter of addMessage) to let screen reader users know
about the completion.
Get an offer