Checkout forms, gallery on product pages, and more elements loaded by javascript take up to 4 seconds to load.
What can be done to make javascript elements load faster?
Update:
I'm using a custom theme which inherits from Blank theme. I've not added additional JS files, only made minor changes to them for translation purposes. All caches are enabled. It is a live site in production mode.
Pages loading times:
Category and product pages: 5 to 6 seconds. Cart and checkout: 9 to 10 seconds. (is it normal?)
On product pages, product images are the last to load. This can be annoying for the user. Is it possible to make them load faster / before other elements on the page?