Commit 535c038
authored
Update preload links to support nonce and fetchpriority (#26826)
Currently when React generates rel=preload link tags for script/stylesheet resources, it will not carryover nonce and fetchpriority values if specified on the original elements.
This change ensures that the preload links use the nonce and fetchPriority values if they were specified.1 parent 4b877b6 commit 535c038
File tree
2 files changed
+79
-0
lines changed- packages
- react-dom-bindings/src/server
- react-dom/src/__tests__
2 files changed
+79
-0
lines changedLines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5510 | 5510 | | |
5511 | 5511 | | |
5512 | 5512 | | |
| 5513 | + | |
5513 | 5514 | | |
5514 | 5515 | | |
5515 | 5516 | | |
| |||
5523 | 5524 | | |
5524 | 5525 | | |
5525 | 5526 | | |
| 5527 | + | |
5526 | 5528 | | |
| 5529 | + | |
5527 | 5530 | | |
5528 | 5531 | | |
5529 | 5532 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4531 | 4531 | | |
4532 | 4532 | | |
4533 | 4533 | | |
| 4534 | + | |
| 4535 | + | |
| 4536 | + | |
| 4537 | + | |
| 4538 | + | |
| 4539 | + | |
| 4540 | + | |
| 4541 | + | |
| 4542 | + | |
| 4543 | + | |
| 4544 | + | |
| 4545 | + | |
| 4546 | + | |
| 4547 | + | |
| 4548 | + | |
| 4549 | + | |
| 4550 | + | |
| 4551 | + | |
| 4552 | + | |
| 4553 | + | |
| 4554 | + | |
| 4555 | + | |
| 4556 | + | |
| 4557 | + | |
| 4558 | + | |
| 4559 | + | |
| 4560 | + | |
| 4561 | + | |
| 4562 | + | |
| 4563 | + | |
| 4564 | + | |
| 4565 | + | |
| 4566 | + | |
| 4567 | + | |
| 4568 | + | |
| 4569 | + | |
| 4570 | + | |
4534 | 4571 | | |
4535 | 4572 | | |
4536 | 4573 | | |
| |||
5913 | 5950 | | |
5914 | 5951 | | |
5915 | 5952 | | |
| 5953 | + | |
| 5954 | + | |
| 5955 | + | |
| 5956 | + | |
| 5957 | + | |
| 5958 | + | |
| 5959 | + | |
| 5960 | + | |
| 5961 | + | |
| 5962 | + | |
| 5963 | + | |
| 5964 | + | |
| 5965 | + | |
| 5966 | + | |
| 5967 | + | |
| 5968 | + | |
| 5969 | + | |
| 5970 | + | |
| 5971 | + | |
| 5972 | + | |
| 5973 | + | |
| 5974 | + | |
| 5975 | + | |
| 5976 | + | |
| 5977 | + | |
| 5978 | + | |
| 5979 | + | |
| 5980 | + | |
| 5981 | + | |
| 5982 | + | |
| 5983 | + | |
| 5984 | + | |
| 5985 | + | |
| 5986 | + | |
| 5987 | + | |
| 5988 | + | |
| 5989 | + | |
| 5990 | + | |
| 5991 | + | |
5916 | 5992 | | |
5917 | 5993 | | |
5918 | 5994 | | |
| |||
0 commit comments