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

UVE: Avoid Changing iframe URL in Headless Mode for Faster Content Updates #31139

Open
4 tasks
Tracked by #30943
rjvelazco opened this issue Jan 15, 2025 · 0 comments
Open
4 tasks
Tracked by #30943

Comments

@rjvelazco
Copy link
Contributor

rjvelazco commented Jan 15, 2025

Parent Issue

#30943

Background

Currently, in headless mode, every time the client sends a new URL, the UVE reloads the iframe. However, modern frameworks, using our hooks, are capable of handling content updates efficiently without the need for a full iframe reload. This results in an unnecessary double reload, slowing down the process and reducing performance.

Overview

When operating in headless mode, we should avoid modifying the iframe URL upon receiving a new URL from the client. Instead, the framework will handle content updates internally, and the UVE should rely on postMessage to fetch and update the data. This approach will eliminate redundant reloads, ensuring a faster and smoother user experience.

Video

31139-uve-avoid-changing-iframe-url-in-headless-mode-for-faster-content-updates-1.mov

Task

  1. Prevent iframe URL Mutation: Ensure the iframe URL remains unchanged when in headless mode.
  2. Implement Data Fetching via postMessage: Update the data dynamically through postMessage without reloading the iframe.
  3. Optimize Framework Communication: Ensure the framework efficiently manages content updates without requiring a full iframe reload.
  4. Document Changes: Clearly document this behavior in the UVE documentation to inform developers of the new optimization.

Proposed Objective

Core Features

Proposed Priority

Priority 3 - Average

Acceptance Criteria

Acceptance Criteria

Preview Give feedback
@rjvelazco rjvelazco changed the title UVE: Avoid Changing iframe URL in Headless Mode for Faster Content Updates [SPIKE] UVE: Avoid Changing iframe URL in Headless Mode for Faster Content Updates Jan 17, 2025
@rjvelazco rjvelazco changed the title [SPIKE] UVE: Avoid Changing iframe URL in Headless Mode for Faster Content Updates UVE: Avoid Changing iframe URL in Headless Mode for Faster Content Updates Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: New
Development

No branches or pull requests

1 participant