Hello, I'm using this code to move scroll to the horizontal center when entering website.
It works well on Firefox. But if I press refresh on Safari or Chrome, scroll doesn't come back to the center.
It stays on last move position.

Maybe someone could help me?

$(window).load(function scrollLeft() {
scrollTo(($(document).width() - $(window).width()) / 2, 0);