Commit 6c5c8d4
committed
[Fizz] Responsive images should not be preloaded with link headers
link headers are optionally supported for cases where you prefer to send resource loading hints before you're ready to send the body of a request. While many resources can be correctly preloaded from a link header responsive images are currently not supported and end up preloading the default src rather than the correctly sized image. Until responsive images are supported React will not allow these images to preload as headers and will retain them to preload as HTML.1 parent 27ba5e8 commit 6c5c8d4
File tree
2 files changed
+34
-7
lines changed- packages
- react-dom-bindings/src/server
- react-dom/src/__tests__
2 files changed
+34
-7
lines changedLines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2958 | 2958 | | |
2959 | 2959 | | |
2960 | 2960 | | |
| 2961 | + | |
| 2962 | + | |
| 2963 | + | |
2961 | 2964 | | |
2962 | 2965 | | |
2963 | 2966 | | |
| |||
5703 | 5706 | | |
5704 | 5707 | | |
5705 | 5708 | | |
| 5709 | + | |
| 5710 | + | |
| 5711 | + | |
| 5712 | + | |
5706 | 5713 | | |
5707 | 5714 | | |
5708 | 5715 | | |
| |||
Lines changed: 27 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3723 | 3723 | | |
3724 | 3724 | | |
3725 | 3725 | | |
3726 | | - | |
| 3726 | + | |
3727 | 3727 | | |
3728 | 3728 | | |
3729 | 3729 | | |
3730 | 3730 | | |
3731 | 3731 | | |
3732 | 3732 | | |
3733 | | - | |
| 3733 | + | |
| 3734 | + | |
| 3735 | + | |
| 3736 | + | |
| 3737 | + | |
| 3738 | + | |
| 3739 | + | |
| 3740 | + | |
| 3741 | + | |
| 3742 | + | |
| 3743 | + | |
| 3744 | + | |
3734 | 3745 | | |
3735 | 3746 | | |
3736 | | - | |
3737 | | - | |
3738 | 3747 | | |
3739 | 3748 | | |
3740 | 3749 | | |
3741 | 3750 | | |
3742 | | - | |
| 3751 | + | |
| 3752 | + | |
| 3753 | + | |
| 3754 | + | |
| 3755 | + | |
| 3756 | + | |
| 3757 | + | |
| 3758 | + | |
| 3759 | + | |
| 3760 | + | |
| 3761 | + | |
| 3762 | + | |
3743 | 3763 | | |
3744 | 3764 | | |
3745 | 3765 | | |
| |||
3751 | 3771 | | |
3752 | 3772 | | |
3753 | 3773 | | |
3754 | | - | |
3755 | | - | |
| 3774 | + | |
| 3775 | + | |
3756 | 3776 | | |
3757 | 3777 | | |
3758 | 3778 | | |
| |||
0 commit comments