Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Browser page up(move to the top) after update. #41

Closed
claudiney opened this issue Nov 14, 2017 · 12 comments
Closed

Browser page up(move to the top) after update. #41

claudiney opened this issue Nov 14, 2017 · 12 comments
Labels

Comments

@claudiney
Copy link

Hi there.

Every time i save the css file, the browser update and page up to the top, losing focus of editing area. E.g. i'm working on the footer, save the css file and the browser move to the top.
I'm using no settings.json configuration file.
Probably there is something wrong in my side, but i don't know where it is.

Thanks.

My setup: Windows 10, VS Code 1.18

@ritwickdey
Copy link
Owner

Have you installed Live Server Web Extension?

@ritwickdey
Copy link
Owner

If yes, turn it off!

@claudiney
Copy link
Author

HI.
No, i didn't, I'm working on pure html and css.

@claudiney
Copy link
Author

When i change the html, the page don't move, just the css change cause page up.

I tried to uninstall VS Code(erase config files too) and Live Server, but the problem continues.

@ritwickdey
Copy link
Owner

It may be a bug! Have you tried anyother project? Or you have said 'after update', if you install previous version of vscode, is this working?

@ritwickdey
Copy link
Owner

If it is not any sensitive content, can you send me the project (or a fake project where you're facing the same issue)?

@ritwickdey
Copy link
Owner

One tips for now (if it's a bug):

  • Install Live Sever Web Extension (for chrome/firefox).
  • set the settings : liveServer.settings.useWevExt : true & start the server & copy the address.
  • Open Live Sever Web Extension setup (popup menu)
  • Click to live reload & paste the address into 'actual server address' & 'live server address' (same value).

@claudiney
Copy link
Author

Yes, i tried many different projects and the problem persist.
I'm not going to send the project, because the files are just for testing(regular html and css)

Gulp + browsersync are running ok here. Let me do some tests

@ritwickdey
Copy link
Owner

Hi @claudiney, Today I faced the same issue what you've mentioned here.

This issue is comes from Library as handling CSS update is different from other files(HTML/JS). If you noticed, when you've changed the CSS, browser never reload the whole page it just re-render the CSS.

There should be a settings to fix this kind of issue (Enforce browser is reload whole page instead of re-rendering CSS).

[Seriously, it is not big deal, but I am sorry, I can't update the extension right now - I am really busy for my exam]

@claudiney
Copy link
Author

Good luck @ritwickdey.

@ritwickdey
Copy link
Owner

This features is already added in v3.1.0. (Sorry, I forget to close it)

@cwgabel
Copy link

cwgabel commented Mar 20, 2021

I had this issue and found that by disabling the chrome extension Dark Mode, the problem went away.

I added my test domain http://127.0.0.1:8080 to the Dark Mode extension's exclude list which did ignore this domain for dark mode switching, but this error on live-server continued to occur.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants