Why are portals better than frames? How are they different? On the surface it seems like they must have similar functions.
Why are portals better than frames? How are they different? On the surface it seems like they must have similar functions.
I think this proposal is a better starting point for readers than an API spec.
Goals, taken directly from the proposal:
- Enable seamless navigations from a page showing a portal, to the portaled page
- Enable seamless navigations between pages of a portal-aware website
- Avoid the characteristics of iframes which have negative impacts on security, privacy, and performance
Also: https://github.com/WICG/portals#summary-of-differences-betwe...
It seems to be some sort of in-page browser tab? Let's see what that brings. (besides interactive advertising, obviously)
See the list of use cases [0] for more
Portals encompass some of the use cases that iframes currently do, but with better security, privacy, and ergonomics properties. And via the activation operation, they enable new use cases like preloading or navigation transitions.
In short, the main thing Portals have over iframes is the ability to promote an iframe to become the top level website, and go back the other way around.
You also get new APIs aiming at making the transition between two websites more seamless visually, and easier to integrate the functionality between the two.
Check out the link I shared in the other comment for videos and further context.