8 ms·
Irony: blank page w/o JS, fails in Outline.com.
by dredmorbius 7y ago
Irony: blank page w/o JS, fails in Outline.com.
- AndrewStephens 7y agoWell this is one way to write a web page. <body> <div id='rain-container'></div> <div id='root'></div> <script src='/deps/marked/lib/marked.js'></script> <script src='/deps/highlight.js/src/highlight.js'></script> <!-- Start preload for performance --> <script type='module' src='/components/core.js'></script> <script type='module' src='/components/tutorials.js'></script> <script type='module' src='/components/about.js'></script> <!-- End preload for performance --> <script type='module' src='/index.js'></script> </body>
- egeozcan 7y agoIt's doing, ...interesting stuff, like rendering markdown on the client, but at least all the required assets are self-served. So it works with uMatrix. Hey, that's something in 2020! 15 years ago we were complaining about the .doc files, now we have the XML based .docx files that are at the very least parseable but we lost the XML based web in between. Now every website implements their own document format which needs to be opened with the executable it sends next to the content. You can try to parse the markup bits but you'll get zero semantic content, that's for sure.
- reaperducer 7y agoFrom the site: I am a data visualization software engineer. Based on this web site, this is a definition of "software engineer" of which I was previously unaware.
- gberger 7y agoPresumably, he makes _data visualization software_. For example Tableau.
- beckingz 7y agoOr builds data visualizations using code. D3 for example.
- anderspitman 7y agoThis. I work on the open source iobio tools: http://iobio.io/ http://iobio.io/
- deleted 7y ago[deleted]
- winrid 7y agoI mean, it loads fast for me. I've definitely seen much much worse. If all sites were this fast I'd be happy.
- JohnFen 7y agoI suppose -- since I can't see anything on that page at all, I have to admit that it loads blazingly fast. But it couldn't be much worse.
- gregsadetsky 7y agoPerhaps it would have been overall simpler to link directly to the page's markdown content..? :-) https://anderspitman.net/entries/16/entry.md https://anderspitman.net/entries/16/entry.md
- anderspitman 7y agoNot a bad idea TBH. I should configure my server so that opens in the browser instead of downloading.
- a1369209993 7y agoDon't forget to add that specific url ( https://anderspitman.net/entries/16/entry.md https://anderspitman.net/entries/16/entry.md ) to the noscript block instead of the nigh-useless github link. Edit: Actually https://raw.githubusercontent.com/anderspitman/anderspitman.net/master/entries/16/entry.md https://raw.githubusercontent.com/anderspitman/anderspitman.... works fine already; can we change the submission URL to that?
- droithomme 7y agoYeah, same here with JS. Solid black page, no content. View source indicates about half is some Google analytics boilerplate, the other half is a body consisting entirely of non-functional JS pulls. OP, where is the content stored?
- mcny 7y agoMeanwhile, please check https://archive.md/aGFRs https://archive.md/aGFRs
- droithomme 7y ago"Can’t find the server at archive.md"
- mcny 7y ago(I believe it is because of some spat between archive is and cloudflare) From the archives: Please make your products work with URLs I want to tell you about something I was unable to accomplish, after more than 30 minutes of concerted effort. I have video file hosted using a web server. The file is H.264 main-profile encoded at a reasonable bitrate (<5Mbps), uses AAC audio, and is packaged in an MP4 container. The web server supports HTTP range requests. In other words, the video is basically in the least common denominator format for compatibility. It streams great in all major web browers, VLC, and everything in between. In my living room, I have a Roku "smart" TV. It has tons of apps, full internet connectivity, and is more than capable of both connecting to and playing the video file described above. But I failed to get this to happen, after much googling and trying multiple apps (both on the Roku TV and my Android phone). The way this type of thing is usually accomplished in 2020 is to open the video on your phone, then tap a "cast" icon and tell it to send the video to your TV. What happens behind the scenes is the phone uses some protocol (Chromecast being the most common I'm aware of) to send the URL to the TV, and the TV then plays it directly, while still letting you play/pause, seek, change volume, etc from the phone. When this works, it's like magic. The YouTube app works particularly well. However, there doesn't seem to be any widely implemented standard for playing plain URLs, only walled gardens like the YouTube app. This whole thing was made much more frustrating by the fact that I knew the TV had all the requisite capabilities to do what I was attempting. The YouTube app is proof of that. There just wasn't any obvious way to find the correct app combination. Here's the way this should work. The Roku app for Android allows you to use your phone as a keyboard for the TV, rather than the awful physical remote UX for input. This is a great feature which I appreciate. I should be able to copy a URL from my phone (possibly obtained from scanning a QR code), paste it into the Roku Android app, and the Roku should attempt to play the file at the URL. This is clunky, awkward, and not particularly easy. But it is simple, obvious, and intuitive. Here is my plea: when you build hardware/software, please make it support the primitive, simple case. By all means, implement the slick Chromecast-style flows. It's great when it works. But there needs to be a fallback for when it doesn't work, or when the user wants to try something slightly different. HTTP is the lingua franca of the internet. When you build stuff, please make it work with simple URLs.
- fxleach 7y agoThat's not irony
- jimcsharp 7y agoI mean it's dramatic irony if they don't realize they're breaking one web 1.0 thing while grousing about another.
- acqq 7y agoEven worse, once the JS is whitelisted, the resulting page still can't be opened with the Firefox "Reader View" so it is unreadable for me (having the black background). JS should not be needed to show five paragraphs of text. And even with the JS the resulting HTML is still unreadable.
- Lev1a 7y agoNot defending the OP's practice of (apparently) pushing the rendering cost on each user instead of doing it once themselves in a build task, but: FF72, uBlock Origin in medium mode, no whitelisting => site renders just fine both in normal and in reader view.
- acqq 7y agoI'm not using uBlock Origin and my extension still (after the author added the broken "noscript") shows just a black screen before enabling js. His "noscript" is also broken as it still doesn't show the darned 5 paragraphs of text. It's that hard for him, as he writes what others should do.
- Semiapies 7y agoAnd when it does load, it's white Courier on black, as if specifically designed for poor usability and accessibility.
- baddox 7y agoIn what sense? Because the article is explaining some problem, and the article itself has some other unrelated problem?
- mywittyname 7y ago> Here is my plea: when you build hardware/software, please make it support the primitive, simple case. The OP is arguing that the primitive, simple case for this page is to not use any javascript because it's unnecessary for the core functionality of this page. The content here can be displayed simply as a few kilobytes of raw HTML. Much like the author assumed that javascript is most primitive & simple functionality for internet users, the people who built his TV, assumed that chromecast protocol is the most primitive & simple way to send a video link to the TV.
- anderspitman 7y agoIt's a valid point, I edited my comment to concede it.
- dredmorbius 7y agoThe article entirely fails to render in Chrome, with JS disabled. It entirely fails to render in text-mode browsers (I actually make heavy use of w3m). It entirely fails to render in https://outline.com/ https://outline.com/, which otherwise is a good way to get fucked-up JS-dependent sites to render. I consider that stage of fuckwittedness either absolutely deliberate (which it appears to be in this case based on the authors defence of their practices), or utter incompetence. These are not mutually exclusive possibilities. The fact that the article is apparently (I've still been unable to read it) a plea for base-level compatibility is, as initially noted, arch irony.
- mirimir 7y agoFunny, but with my cranky old Firefox, it loads just fine. With NoScript blocking both the site and Google. By "w/o JS" do you mean totally disabled? Or just NoScript?
- anderspitman 7y agoHow old is your Firefox? I actually wouldn't expect it to work on old browsers, since it uses native JS modules directly.
- mirimir 7y agoNot that old, really: 60.3.0esr.
- a1369209993 7y agoFWIW, I have the same setup (3.6 forever!) and it doesn't load. Are you sure you have NoScript set to default-deny?
- mirimir 7y agoOK, not that old: 60.3.0esr. And you're right, I wasn't paying attention. I did temporarily allow the site.
- a1369209993 7y agoHeh. <waves cane> Damn whippersnapper! Get off my lawn! And button up that RCE vulnerablity of yours! Does your mother know what code you've been running? <grumbling> Kids these days...
- artursapek 7y agolmao - "please make your site render properly on the server"
- anderspitman 7y agoPlease see my explanation here: https://news.ycombinator.com/item?id=22038862 https://news.ycombinator.com/item?id=22038862