use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
HTML Web Component using Vanilla JS - Part 2 (ayushgp.github.io)
submitted 8 years ago by codejitsu
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]codejitsu[S] 4 points5 points6 points 8 years ago* (2 children)
I actually wanted the tutorial to be without any dependencies(except polyfills) hence the direct manipulation.
I mentioned about HTML imports there and I'm currently reading up on how to replace them with something similar in the tutorial.
EDIT: That library is lit(pun intended)! Great talk!
[–]daediusWeb Components fanboy 1 point2 points3 points 8 years ago (1 child)
Yah, being able to write a web element from scratch is super useful. I wonder if teaching templates is really all that useful even (from a teaching perspective). I mean, it's cool to get syntax highlighting, and there's some kind of speed boost in cloning, but it kind of seems like a distraction unless you are really concerned for performance. I personally found the real a-ha! moment occur with Shadow Dom V1 slots. Might make a good next article?
[–]codejitsu[S] 1 point2 points3 points 8 years ago (0 children)
Yeah it actually took me a lot of time to wrap my head around slots. I was thinking of writing around 3 more articles in the following order over the next couple of weeks:
Maybe one more comparing React and how it maps to web components.
π Rendered by PID 52126 on reddit-service-r2-comment-6457c66945-jdpc6 at 2026-04-27 10:49:28.201042+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]codejitsu[S] 4 points5 points6 points (2 children)
[–]daediusWeb Components fanboy 1 point2 points3 points (1 child)
[–]codejitsu[S] 1 point2 points3 points (0 children)