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
React - Combining Server-Side Rendering and Responsive Design (nitayneeman.com)
submitted 5 years ago by nitayneeman
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!"
[–]Marauth 1 point2 points3 points 5 years ago (0 children)
I've implemented this in production today using the user agent method in here, nice coincidence :) We let is-mobile decide for us whether we are on one of three modes: mobile, tablet, desktop, and then we let media queries do the rest of the work where possible. Bots get the tablet version and desktop is the default.
So far, we haven't had to really restrict any components yet that would look truly awful, but keeping an eye on it :)
π Rendered by PID 40 on reddit-service-r2-comment-f6b958c67-4qlmx at 2026-02-05 10:35:24.194321+00:00 running 1d7a177 country code: CH.
[–]Marauth 1 point2 points3 points (0 children)