You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 22, 2024. It is now read-only.
support request => Please do not submit support request here, see note at the top of this template.
What modules are related to this Issue?
express-engine
grunt-prerender
gulp-prerender
hapi-engine
universal-next
universal
webpack-prerender
Do you want to request a feature or report a bug?
feature
What is the current behavior?
Server rendered DOM may be transformed before the client bootstraps by 3rd party scripts or edge computing. Browser currently displaces this transformed DOM upon client side bootstrap.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem by creating a github repo.
n/a
What is the expected behavior?
Server rendered DOM elements need to be extracted from the server <app> component and placed in the client <app> component upon client bootstrap.
There needs to be a way to specify which elements / components should be transcluded into the client bootstrapped <app> from the server side <app>.
What is the motivation / use case for changing the behavior?
I have 3 use cases for this feature request:
Ads - 3rd party js finds ads markup in the server rendered DOM and injects any arbitrary elements (iframes, video, img, div soup) and additional scripts into the document. This needs to occur as fast as possible, so sometimes the ads will inject into the server rendered DOM before client has bootstrapped. When client bootstraps, the injected ad content will appear wiped out. Maintaining ad rendering capability from our 3rd parties is a firm requirement for us using universal.
Edge compute processed DOM - server generated DOM may be transformed at the edge before it arrives in the browser with important injected values such as a a user's browser, screen resolution and geolocation. If this edge compute processed markup is rendered in client it will appear as though unprocessed and will also be wiped out.
Static, inert text copy in a server rendered component - Always good to not spend cpu, ram and battery if you can help it. If possible, forklift the server rendered DOM into the same position in the client view.
Please tell us about your environment:
Angular version: 2.0.0
Browser: all
Language: all
OS: all
Platform: NodeJs
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)
The text was updated successfully, but these errors were encountered:
feature
Server rendered DOM may be transformed before the client bootstraps by 3rd party scripts or edge computing. Browser currently displaces this transformed DOM upon client side bootstrap.
n/a
Server rendered DOM elements need to be extracted from the server
<app>
component and placed in the client<app>
component upon client bootstrap.There needs to be a way to specify which elements / components should be transcluded into the client bootstrapped
<app>
from the server side<app>
.I have 3 use cases for this feature request:
Ads - 3rd party js finds ads markup in the server rendered DOM and injects any arbitrary elements (iframes, video, img, div soup) and additional scripts into the document. This needs to occur as fast as possible, so sometimes the ads will inject into the server rendered DOM before client has bootstrapped. When client bootstraps, the injected ad content will appear wiped out. Maintaining ad rendering capability from our 3rd parties is a firm requirement for us using universal.
Edge compute processed DOM - server generated DOM may be transformed at the edge before it arrives in the browser with important injected values such as a a user's browser, screen resolution and geolocation. If this edge compute processed markup is rendered in client it will appear as though unprocessed and will also be wiped out.
Static, inert text copy in a server rendered component - Always good to not spend cpu, ram and battery if you can help it. If possible, forklift the server rendered DOM into the same position in the client view.
The text was updated successfully, but these errors were encountered: