DEV Community

Discussion on: 〈load-file〉Web Component, add external content to the DOM

Collapse
 
dannyengelman profile image
Danny Engelman • Edited

Tnx,

I added object and a link to vecta.io/blog/best-way-to-embed-svg which describes all in detail

Also changed functionality slightly. Only the first <style> element will now be moved to shadowDOM. That way any <slot> element in a loaded .html file will slot content from lightDOM correctly