Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

216
Views
Pinch Zoom is not reset when location.href set to current page

I have in my chrome extension a timer for when a page has been idle a certain time it will reload and navigate to the set home page.

//Reset when been idle certain time
window.setInterval('refresh(), 30000); 
let homepage = 'https://google.com' //home page
function refresh() {
location.href = homepage;
}

If you have pinched zoomed and the page is reloaded, the zoom level is still there IF you already are at the home page.

If you are at any other page and the location.href is set, the zoom is reset.

So, is there some way to reset the pinched zoom when reloading the same page or is this some bug in chrome?

This doesn't work as well:

location.reload();
location.replace(homepage);
location.assign(homepage);
history.go(0);
almost 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!