Currently the server waits for the price history request before rendering the page. As it is a slower request, page loading takes longer. And unlike the basic product info, it is not needed on the server side at all.
So it should only happen on the client side.
Option 1: completely refactor the page without effector. Effector proved to be an interesting but completely unnecessary technology in this project.
Option 2: add a client-side page loaded event and reroute the history request using it
Currently the server waits for the price history request before rendering the page. As it is a slower request, page loading takes longer. And unlike the basic product info, it is not needed on the server side at all.
So it should only happen on the client side.
Option 1: completely refactor the page without effector. Effector proved to be an interesting but completely unnecessary technology in this project.
Option 2: add a client-side page loaded event and reroute the history request using it