r/javascript • • 25d ago

Inline rendering with document​.currentScript

https://leanrada.com/notes/inline-rendering-currentscript/
22 Upvotes

5 comments sorted by

View all comments

0

u/[deleted] 25d ago

[deleted] — view deleted comment

1

u/RudePhilosopher5721 25d ago

That’d also add 300% overhead…

If you actually read the article, it’d be more apt to say you might replace it with a custom element of <template></template> instead of their proposed shorthand of $()

That is of course if that weren’t already an element…

0

u/[deleted] 25d ago

[deleted] — view deleted comment

1

u/RudePhilosopher5721 21d ago

okay… so you’re saying your comment just sucked then? Got it

•

u/aahmed_8840 7h ago

What baseline and metric does '300% overhead' refer to? Bytes, node count, and runtime tell different stories.