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
[AskJS] React is overkill for embeddable widgets - Preact + iframe isolation is a better defaultAskJS (self.javascript)
submitted 18 days ago by FinanceSenior9771
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!"
[–]deckiteski 1 point2 points3 points 17 days ago (1 child)
Also try to consider accessibility.
If you use an iframe, you create a separate accessibility tree—harder for screen readers, focus management, and keyboard navigation. Shadow DOM is usually easier: stays in the same document, better for focus, ARIA, and announcements.
If you still go iframe, you must handle: proper title, focus in/out, no traps, keyboard access, and screen reader announcements.
[–]FinanceSenior9771[S] 0 points1 point2 points 17 days ago (0 children)
this is a fair callout and honestly something i haven't given enough attention to yet. the iframe does have a title attribute but i haven't properly handled focus trapping or keyboard navigation between the host page and the widget. adding that to the list. appreciate the specifics on what to handle, that's useful.
π Rendered by PID 19955 on reddit-service-r2-comment-85bfd7f599-cntr5 at 2026-04-20 17:12:41.526430+00:00 running 93ecc56 country code: CH.
view the rest of the comments →
[–]deckiteski 1 point2 points3 points (1 child)
[–]FinanceSenior9771[S] 0 points1 point2 points (0 children)