Startup form takes TWO MINUTES to load, after it's loaded, everything else is super fast

  • I removed all the css and it still takes a minute to load.

  • I deferred the import of all the unnecessary libraries to when they are needed inside the main Form class code.
    So now it looks like this:

Screenshot 2021-10-20 at 13.06.45

And here is the terminal:

Exactly one minute to get to the first line.

My question is, if everything is compiled from top to bottom, then the first print() function must be the first thing that is executed. Meaning all the imports are happening after the print() anyways.

Do you know what files/components are loaded before the first line of a startup form gets executed?