8 ms·
The layout breaks without javascript on I see this bandied about on reviews of various sites, and I continue to believe it doesn't matter. If you have Javascri
by freehunter 14y ago
The layout breaks without javascript on
I see this bandied about on reviews of various sites, and I continue to believe it doesn't matter. If you have Javascript turned off and a page doesn't load, you should know why that page isn't loading. It's because you deliberately broke it for yourself.
- orangethirty 14y agoI disagree. They broke it by not providing a fallback option. You always provide a fallback option, even if it is a simpler website.
- daleharvey 14y agoYou dont always do anything, you compare the cost of the effort against the value added, if its not worth doing, then people wont do it
- orangethirty 14y agoNot worth keeping your brand looking right? This is not about code, this is about their brand and how they protray themselves. If people see a broken website (for any reason, be it cookies, JS, or whatever), they will think less of the brand. Like you said, "...you compare the cost of the effort against the value added". It does not add anything to the brand, but not having a fallback takes away from it. And given Diggs current reputation, they need all they can get.
- daleharvey 14y agoIf >1% see a broken website, and >99% see them reviving a dead platform extremely quickly It is their tradeoff to make, personally I think they are making the right one.
- orangethirty 14y agoHonestly, how much time can including a <noscript> tag can take? Simple as: <noscript>Digg is awesome with javascript turned on.</noscript> on top of their other markup. That's it. Twenty seconds tops.
- blauwbilgorgel 14y agoYou are free to believe that. But let us say I want to cater both to you and to another user that browses the web with NoScript (assume it is my goal to cater to as many users as possible). I have two options: A) make the layout accessible without JavaScript B) break the layout without JavaScript. Only with option A do I cater to both of you -- Regardless of deliberate breaking or bandied opinions ("Thou shalt never mix style and script").
- freehunter 14y agoThe problem with NoScript is that it intentionally breaks the intended functionality of a website. I just went into the Firefox element inspector and deleted the code for the list of links on the HN homepage. Now they're gone! How dare PG not cater to my will to randomly disable parts of the website? You're free to browse the web with parts of it turned off. But you should expect that parts of it might not work, and if they don't work it should be immediately obvious why. Could Digg make it fall back? Yes. Should they? Only if they really want to. It seems they don't really want to. No one wants to cater to IE6 users, either.
- cutie 14y agoNo, the web is constructed of separate markup, stylesheets, and code for good reasons. If you prefer a tangled, dependent mess enjoy the results. The advantages to a separation of concerns and the security risks of javascript are real. Otherwise, why not just go back to the bad old days of single, giant pages containing everything?
- jamesbritt 14y agoYou're free to browse the web with parts of it turned off. But you should expect that parts of it might not work, and if they don't work it should be immediately obvious why. Yes, it should be immediately obvious, but often it isn't, and that's my biggest complaint with sites that rely on scripting for basic behavior. Too many times I've filled in a form, hit the Submit button, only to find that proper form submission does not work without scripting. Nothing on the page warned me, nothing stopped me from filling in the form, even though there are snake-simple ways to tell no-scripters of missing behavior, or to simply prevent bad behavior when scripting is turned off. (The other complaint I have is why sites rely on scripting to do things that are baked into HTML. For example, using divs as text areas instead of, say, using a textarea as a text areas.)
- dt7 14y agoA <noscript> tag would suffice.
- TazeTSchnitzel 14y agoThis is what I do. Most of my stuff degrades gracefully, but for the few things which can't (JS demos/game things), I generally do something like this: <noscript>example.com is a HTML5/ES5/CSS3 3D graphics demo. Unfortunately, your user-agent doesn't seem to support ES5, sorry about that.</noscript>
- SimHacker 14y agoOr you could phrase without all the academically correct technical buzzwords, so normal people who are your real audience will understand what you're trying to communicate. Like using "JavaScript" instead of "ES5" and "web browser" instead of "user agent".
- awj 14y ago> Or you could phrase without all the academically correct technical buzzwords, so normal people who are your real audience will understand what you're trying to communicate. Normal people who are my real audience probably don't even know how to disable javascript, and most likely would enable it with no fuss if something looked broken.
- TazeTSchnitzel 14y agoMy target audience know what it means. Web devs. For more general population-oriented sites, I have smiley faces and "JavaScript" and "Web browser".
- damncabbage 14y agoCounterpoint: Twitter went "down" for five hours about five months back because someone typo'd true in the blob of javascript it serves up. If your site still works without javascript, at least something will work if a bug slips through to production. (I agree with you for the most part; it's just when even page navigation breaks it can get more than mildly annoying.)
- polyfractal 14y agoThis is a silly argument. You could just as easily put a typo in your apache/nginx config and nuke your site. It has nothing to do with gracefully degrading with respect to javascript
- qq66 14y agoThat's not entirely true, there are hundreds of millions, if not billions, of people who use the Web only through a phone, usually a featurephone, and mobile phone Javascript is broken or nonexistent on many of these platforms. These are lower-revenue users, for sure, but there are a LOT of them.
- freehunter 14y agoIn that situation, wouldn't it make more sense to show them a completely different site based on browser id? Not just one that doesn't rely on Javascript, but has a completely different layout entirely? I would still question the millions or billions of users who view the web only on their non-smart-phone who will be using social media like Digg.
- qq66 14y agoI know from firsthand experience, ignoring Digg for the moment, that there are at least 500 million people who use a featurephone in India to check news, cricket scores, horoscopes, make payments, send emails, and send text messages. Their threshold for device frustration is much higher than mine.
- gcr 14y agoTell that to a blind user. Let's see how they react. If you have a site that breaks without javascript, you are leaving a significant portion of your customer base on the table.