Comment Comment by lelanthran That breaks on edge cases.For example it won't work recursively when a fetched fragment has fragments of its own.Or when the js snippet loads before some fragment element is loaded (say, from a DOM update).The nice thing about custom elements is that you get to treat them exactly like normal elements. parent lelanthran 2 years ago
For example it won't work recursively when a fetched fragment has fragments of its own.
Or when the js snippet loads before some fragment element is loaded (say, from a DOM update).
The nice thing about custom elements is that you get to treat them exactly like normal elements.