23 ms·
I work on a web app that is half and half when it comes to depending on JS. The site started as MVC PHP app that was all server-side but over the years JS was a
by joshstrange 12y ago
I work on a web app that is half and half when it comes to depending on JS. The site started as MVC PHP app that was all server-side but over the years JS was added to do client-side validation and other UI/UX enhancements. In part because the customers asked for them and because something would have been extremely tedious and frustrating without JS+AJAX.
As time wore on entire components were built with JS making them unusable with out it. I have some co-workers who want to move all logic back to the server side or at least provide fallbacks for non-JS users but I strongly oppose this. We have parts of our app that use google maps that would be completely unusable without JS and those parts are arguably the most important and central parts of our app.
They want to approach it as "Lets make as many parts usable without JS as we can" while my opinion is "If parts of the app absolutely require JS and are heavily used parts then why waste our time worry about people with JS disabled". Especially since a lot of the server-side only parts of the app could be greatly enhanced with JS. I should also mention that this web app is NOT public facing and is only used by our call center (which we control the browser, newest chrome) and various groups of people using our software which so far all have JS enabled.
I agree that a news website does not need to have JS-required pages for 99.999%+ of their content. If they are taking the time to enhance their site with JS then I believe they probably also have the time (and financial incentive) to make their sites work without JS. Web apps on the hand are a different story. Once you have a significant number of users it might make sense to invest the time in making a fallback or slimed down version (I'm thinking Google/Facebook/etc) but for most companies I don't think supporting a JS-disabled web is a good use of time.
- mbell 12y ago> I agree that a news website does not need to have JS-required pages for 99.999%+ of their content. I've seen this idea a number of times in this thread, it's far from true. The majority of advertising systems require JS. Without advertising, the news site has no income. As a result the internal discussion is going to be more like 'why waste any time at all to support the ~1% of users who will never generate any revenue'.
- joshstrange 12y agoYou can still show ads with JS disabled at least some of the ads systems I have used have <noscript> tags following the JS include to show something still if JS is disabled. It's far less targeted for sure which in turn leads to less revenue from them. And I think it's fair for a free resource (This does not hold for news sites behind a paywall) to require JS so that they can make money off ads to in turn support the free viewing.