Reputation: 3
I have noticed that my website jumps a few pixels when loading... been trying to figure out why but I am at an end. If someone could help me figure this out it would be appreciated. It is really noticable on the All In One Map Link. Here is Link to site: MoreOutdoors.net
Upvotes: 0
Views: 293
Reputation: 1937
The jump is the browsers vertical scroll bar appearing while the page is loading.
Try adding this to your css:
html {
overflow-y: scroll;
}
This will force the vertical scrollbar to appear at the start of the page load.
Another alternative would be to not show anything until the page is loaded. It's not advisable but you'll find more information here: How can I make the browser wait to display the page until it's fully loaded?
Upvotes: 1