Load page specific JavaScript after main entrypoint
What does this MR do and why?
This MR addresses feature spec failures like this. It ensures page specific JavaScript is executed after the main entrypoint as it should.
Related to Large spike in test flakiness for test-on-gdk e... (#454520).