Answer the question
In order to leave comments, you need to log in
Why is there scrolling after page refresh?
I use gulp and after refreshing the page, it scrolls to the middle of the page, I can’t figure out why and how to remove it.
Part of my gulpfile.js:
gulp.task('server', function () {
browserSync({
server: {
baseDir: './build'
},
tunnel: false,
host: 'localhost',
port: 9000,
logPrefix: "test",
open: false
});
});
gulp.task('pages', function() {
return gulp.src(path.in.pages)
.pipe(rigger())
.pipe(gulp.dest(path.out.pages))
.pipe(reload({stream: true}));
});
Answer the question
In order to leave comments, you need to log in
Perhaps you have a page open in several tabs at the same time?
https://www.browsersync.io/docs/options
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question