Reload bellow the fold in same place

The most annoying thing when you are working with animations or even with CSS is definitely when you are working on something that is below the fold, and with each refresh, you need to scroll again to see the changes.

This code snippet will help you with that. It will scroll to the same position as to where the page was when you clicked refresh.

Code is safe to be used even on production websites. In the case of user refresh, nothing will look broken from his side.

For the best performance, we recommend that you create a separate code block and target only the page you are working on.

This code snippet is also handy for the Scripts Organizer preview feature since every saves in Scripts Organizer will reload the preview.

Without Reload Script

With Reload Script

This content is visible only for owners of

Scripts Organizer.

Please login to see the content.

Marko Krstić

Owner of dPlugins. Started with design in 1999. Currently, besides dPlugins, he is an Art director at Scandic Hotels, delivering design for the Web and the App for 270 Scandinavian hotels.
flywheel grey
Great load time is only possible with powerful hosting. Purchase it  now.