Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

[UI] Embed HUD in iframe #153

Open
davidkpiano opened this issue Jun 29, 2017 · 1 comment
Open

[UI] Embed HUD in iframe #153

davidkpiano opened this issue Jun 29, 2017 · 1 comment
Milestone

Comments

@davidkpiano
Copy link
Contributor

  • All of the HUD's UI components should be in an isolated <iframe>
    • Can also consider a shadow DOM a la web components (@legomushroom)
  • Add small amount of "bridge" JS that communicates between the Glimpse.Browser.Agent and the HUD
    • Can use (postMessage())[https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage] to accomplish this

This will mitigate concerns related to:

  • style isolation (there is no guarantee that HUD styles are not overridden by inherited styles)
  • performance metrics: currently, the performance numbers (as well as load times, etc.) can be influenced by the HUD, since they are all within the same main thread.
@legomushroom
Copy link
Member

I see a lot of benefits in doing this, wondering if we can go further and make a component that can be embedded anywhere?

@mike-kaufman mike-kaufman added this to the Backlog milestone Jun 30, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants