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

132
Views
When making a redirection in aframe virtual reality mode, it freezes for 2 to 5 seconds

Any way that I can do the redirection without freezing, or in any case that a message appears to the user that he is being redirected?

I tested in Meta Quest Browser and Firefox Reality.

I have tried these two forms of redirection:

window.location.replace("https://en.wikipedia.org/wiki/Main_Page");
window.location.href = "https://en.wikipedia.org/wiki/Main_Page";

I share the test link:

Live site: https://heavenly-tangy-address.glitch.me

Code: https://glitch.com/edit/#!/heavenly-tangy-address

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I find this solution to work well.

What consists of leaving the vr mode and then just doing the redirection

const sceneEl = document.querySelector('a-scene');
if (sceneEl.is('vr-mode')) sceneEl.exitVR();
window.location.href = "https://en.wikipedia.org/wiki/Main_Page";

I think this is a good solution to avoid screen freezing

about 4 years ago · Juan Pablo Isaza Report
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!