My point exactly.
Haopei, some good advice. Try to stay away from unnecessary bells and whistles on a page, like what you are looking to implement.
Good advice, and I live my web design life by it, but I really like this feature.
For one you are adding all this extra code, download time and HTTP requests without much benefit to your end users. So in other words you are hurting yourself and your page more than helping out your site visitors.
It adds 1 extra HTTP request and a 4.5KB script download per site visit. That is nothing in the context of a typical website. Blink, and you’ve missed the extra time it takes to download. We’re not talking about downloading the whole of JQuery here, it’s a very light script.
Bells and whistles, when used effectively must offer your user some benefit/use to the content/page they are viewing. A good example is if you want to showcase your skills, then put them on a sample page.
There are big accessibility/usability advantages to using SmoothScroll or a similar feature. If you have a lot of in-page links, people will often get confused by them. They click on a link and bang the view instantly changes. It’s quicker than a page load. Has a new page loaded? They’re not sure. If a new page hasn’t loaded, what has happened? They’re not sure. Has the view actually changed at all? Some of them probably aren’t even sure of that.
With a smooth scroll script, not only do you get a funky visual effect, but you get a visual indication of what is happening. By showing them the page scrolling up or down to get to the point they are going, you are giving them a better mental picture of the site/page structure. They know that to get back to where they were, they can just scroll back the other way. They can probably continue scrolling up and down to find more content on the page.
As I said, I really like this script. I have been using it on one of my websites for over 3 years now, and have not had a single complaint about it from any visitors.