Skip to content

Revert "fix(platform-server): insert transfer state script before other script tags (#48868)"#49112

Closed
alan-agius4 wants to merge 1 commit intoangular:mainfrom
alan-agius4:state-revert
Closed

Revert "fix(platform-server): insert transfer state script before other script tags (#48868)"#49112
alan-agius4 wants to merge 1 commit intoangular:mainfrom
alan-agius4:state-revert

Conversation

@alan-agius4
Copy link
Contributor

This reverts commit 2fc5b70 as this change is no longer needed since type=module script are deferred by default. Which causes the transfer data to be queried after the browser has finished parsing the DOM.

@alan-agius4 alan-agius4 added action: review The PR is still awaiting reviews from at least one requested reviewer area: server Issues related to server-side rendering target: patch This PR is targeted for the next patch release labels Feb 16, 2023
@ngbot ngbot bot modified the milestone: Backlog Feb 16, 2023
Copy link
Contributor

@AndrewKushnir AndrewKushnir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alan-agius4 LGTM 👍

One quick note: could you please add a comment into the code to describe that the way we insert the script tag (for transfer state) is intentional due to the fact that the type=module script are deferred by default (as you mentioned in the PR description).

@AndrewKushnir AndrewKushnir added action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Feb 16, 2023
…ther `script` tags (angular#48868)"

This reverts commit 2fc5b70 as this change is no longer needed since `type=module` script are deferred by default. Which causes the transfer data to be queried after the browser has finished parsing the DOM.
@alan-agius4 alan-agius4 removed the action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews label Feb 17, 2023
@alan-agius4 alan-agius4 added the action: merge The PR is ready for merge by the caretaker label Feb 17, 2023
@AndrewKushnir
Copy link
Contributor

This PR was merged into the repository by commit 2d51b5f.

AndrewKushnir pushed a commit that referenced this pull request Feb 17, 2023
…ther `script` tags (#48868)" (#49112)

This reverts commit 2fc5b70 as this change is no longer needed since `type=module` script are deferred by default. Which causes the transfer data to be queried after the browser has finished parsing the DOM.

PR Close #49112
AndrewKushnir pushed a commit that referenced this pull request Feb 17, 2023
…ther `script` tags (#48868)" (#49112)

This reverts commit 2fc5b70 as this change is no longer needed since `type=module` script are deferred by default. Which causes the transfer data to be queried after the browser has finished parsing the DOM.

PR Close #49112
@alan-agius4 alan-agius4 deleted the state-revert branch February 17, 2023 19:10
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Mar 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: server Issues related to server-side rendering target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants