Commit cb3404a
authored
[Fizz]: Unify preload queue (#27190)
Currently React attempts to prioritize certain preloads over others
based on their type. This is at odds with allowing the user to control
priority by ordering which calls are made first. There are some asset
types that generally should just be prioritized first such as fonts
since we don't know when fonts will be used and they either block
display or may lead to fallback fonts being used. But for scripts and
stylesheets we can emit them in the order received with other arbitrary
preload types.
We will eventually add support for emitting suspensey image preloads
before other resources because these also block display however that
implementation will look at which images are actually rendered rather
than simply preloaded.1 parent 9edf470 commit cb3404a
File tree
2 files changed
+22
-58
lines changed- packages
- react-dom-bindings/src/server
- react-dom/src/__tests__
2 files changed
+22
-58
lines changedLines changed: 10 additions & 46 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4250 | 4250 | | |
4251 | 4251 | | |
4252 | 4252 | | |
4253 | | - | |
4254 | | - | |
4255 | | - | |
4256 | | - | |
4257 | | - | |
4258 | | - | |
4259 | | - | |
4260 | | - | |
4261 | | - | |
4262 | | - | |
4263 | | - | |
4264 | | - | |
4265 | | - | |
4266 | | - | |
| 4253 | + | |
| 4254 | + | |
4267 | 4255 | | |
4268 | 4256 | | |
4269 | 4257 | | |
| |||
4330 | 4318 | | |
4331 | 4319 | | |
4332 | 4320 | | |
4333 | | - | |
4334 | | - | |
4335 | | - | |
4336 | | - | |
4337 | | - | |
4338 | | - | |
4339 | | - | |
4340 | | - | |
| 4321 | + | |
| 4322 | + | |
4341 | 4323 | | |
4342 | 4324 | | |
4343 | 4325 | | |
| |||
4882 | 4864 | | |
4883 | 4865 | | |
4884 | 4866 | | |
4885 | | - | |
4886 | | - | |
4887 | | - | |
4888 | | - | |
| 4867 | + | |
4889 | 4868 | | |
4890 | 4869 | | |
4891 | 4870 | | |
| |||
4909 | 4888 | | |
4910 | 4889 | | |
4911 | 4890 | | |
4912 | | - | |
4913 | | - | |
4914 | | - | |
4915 | | - | |
| 4891 | + | |
4916 | 4892 | | |
4917 | 4893 | | |
4918 | 4894 | | |
| |||
5199 | 5175 | | |
5200 | 5176 | | |
5201 | 5177 | | |
5202 | | - | |
5203 | | - | |
5204 | | - | |
5205 | | - | |
5206 | | - | |
5207 | | - | |
5208 | | - | |
5209 | | - | |
5210 | | - | |
5211 | | - | |
5212 | | - | |
5213 | | - | |
5214 | | - | |
5215 | | - | |
5216 | | - | |
5217 | | - | |
| 5178 | + | |
| 5179 | + | |
| 5180 | + | |
| 5181 | + | |
5218 | 5182 | | |
5219 | 5183 | | |
5220 | 5184 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4131 | 4131 | | |
4132 | 4132 | | |
4133 | 4133 | | |
| 4134 | + | |
| 4135 | + | |
| 4136 | + | |
| 4137 | + | |
| 4138 | + | |
| 4139 | + | |
4134 | 4140 | | |
4135 | 4141 | | |
4136 | 4142 | | |
| |||
4143 | 4149 | | |
4144 | 4150 | | |
4145 | 4151 | | |
4146 | | - | |
4147 | | - | |
4148 | | - | |
4149 | | - | |
4150 | | - | |
4151 | | - | |
4152 | 4152 | | |
4153 | 4153 | | |
4154 | 4154 | | |
| |||
4166 | 4166 | | |
4167 | 4167 | | |
4168 | 4168 | | |
| 4169 | + | |
| 4170 | + | |
| 4171 | + | |
| 4172 | + | |
| 4173 | + | |
| 4174 | + | |
4169 | 4175 | | |
4170 | 4176 | | |
4171 | 4177 | | |
| |||
4178 | 4184 | | |
4179 | 4185 | | |
4180 | 4186 | | |
4181 | | - | |
4182 | | - | |
4183 | | - | |
4184 | | - | |
4185 | | - | |
4186 | | - | |
4187 | 4187 | | |
4188 | 4188 | | |
4189 | 4189 | | |
| |||
0 commit comments