We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e656076 commit a0911b4Copy full SHA for a0911b4
src/Components/Web.JS/src/Rendering/DomMerging/DomSync.ts
@@ -308,6 +308,11 @@ function domNodeComparer(a: Node, b: Node): UpdateCost {
308
return UpdateCost.Infinite;
309
}
310
311
+ // Always treat "preloads" as new elements.
312
+ if ((b as Element).tagName === 'LINK' && (b as Element).attributes.getNamedItem('rel')?.value === 'preload') {
313
+ return UpdateCost.Infinite;
314
+ }
315
+
316
return UpdateCost.None;
317
case Node.DOCUMENT_TYPE_NODE:
318
// It's invalid to insert or delete doctype, and we have no use case for doing that. So just skip such
0 commit comments