What is the order of script execution in a multipage app?

In a multipage app, the entrypoint file is executed upon launch. Do the rest of the pages get run silently in the background? If I navigate to a new page, and then refresh, does the entrypoint script get re-executed as well? Does this happen before the page script?

Thanks in advance for your help!

The pages are executed in whatever order the user visits them. That means the main file might not be executed first since you can start a session on a different page by appending /<page_name> to the URL. This can also happen if a user is on some page and does a manual page refresh which would reset their session and make whatever page they are on β€œthe first script executed.”

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.