News for hackers. Stuff that matters.
Re:The New Web Typography by ekianjo on Saturday February 27, 2016 @09:17PM (#11189479)
> We can learn more about prioritising the text in this way by diving deeper into the murky waters of web font loading: in my walkthrough on the subject I mentioned two of the most popular techniques.

His techniques uses javascript, which goes completely behind the earlier point he is making about "typography is as strong as your weakest link". If I have Noscript on, I can't see your text correctly. That's your weakest link right there.

Re:The New Web Typography by twblalock on Saturday February 27, 2016 @09:53PM (#11189595)
If you choose to disable one of the core technologies of the modern web, you'll just have to take what you can get.
Re:The New Web Typography by bigbugbag on Sunday February 28, 2016 @09:13AM (#11190949)
The same "modern web" that mostly fails at doing web for lack of progressive enhancement.

But enough sidetracking, as ekianjo said, using a script to load the font is unnecessarily adding to its fragility and simply fails for those without javascript.

This modern web core technology being a security liability[1], invasive of privacy[2] and the facilitator of modern annoyances that gets in the way of the user, (ads, interstitial space, ...) it is an expected response from the user to disable it or restrict it to the actual domain serving the page.

[1]: http://thehackernews.com/2016/01/javascript-ransomware-malwa... [2]: http://motherfuckingwebsite.com/ and http://bettermotherfuckingwebsite.com/ and http://evenbettermotherfucking.website/

Re:The New Web Typography by erikpukinskis on Saturday February 27, 2016 @10:57PM (#11189755)
That's one way to go. You can also take the path of radical simplicity: only include what is absolutely necessary, and what is resilient enough to work in wide situations. To make a tool of the highest quality.

Sometimes a constraint like that can lead you to solutions even better than what you started with.

Re:The New Web Typography by pdkl95 on Sunday February 28, 2016 @12:11AM (#11189963)
> only include what is absolutely necessary

Or you can write a robust design that starts with radical simplicity that is at least functional, and then progressively enhance the page with whatever features are currently available. The user shouold at least be left with something usable if the Javascript or CSS or font doesn't load.

This modern trend that tries to pretend that the User Agent will always support various features or that they can simply assume that network errors never happen just makes sites look shoddy and unprofessional.

Re:The New Web Typography by SimeVidas on Saturday February 27, 2016 @11:29PM (#11189852)
JavaScript often fails to load due to network congestion or poor connectivity. In those cases, it is important to provide a good user experience with the HTML alone.
Re:The New Web Typography by chei0aiV on Sunday February 28, 2016 @10:35AM (#11191120)
Re:The New Web Typography by oneeyedpigeon on Sunday February 28, 2016 @10:18AM (#11191076)
One of the key principles of the modern web is that JavaScript is NOT a 'core technology'; it's an added bonus. Please don't make your pages break without it.
Re:The New Web Typography by anon4 on Sunday February 28, 2016 @05:11AM (#11190551)
And you can choose to not be an asshole and not get downvoted, but you'll just have to take what you deserve.
Re:The New Web Typography by e12e on Sunday February 28, 2016 @02:01AM (#11190157)
Nice catch, but I think you're a little too harsh. First of all, the site looks better than most other sites, with js off (I also use noscript). Secondly, one has to ask why js is disabled. The site probably looks as fine as it could in lynx or w3m. A spider can read the semantic markup fine. A screenreader while pronounce the text as well (or poorly) as is.

I think most people realize that there are certain limits to the combination of just html and css -- and that js can be used to change the trade-off between "good" and "perfect".

All that said, I also wish one could simply add a link to a font-file in the <head>-element and be done with it. But as web fonts are an attack vector, the people that run noscript, shouldn't be able to see that webfont either -- unless they take an action to trust the publisher in question (the site/host).

Re:The New Web Typography by bigbugbag on Sunday February 28, 2016 @09:25AM (#11190981)
> I also wish one could simply add a link to a font-file in the <head>-element and be done with it.

You know you can do just that, don't you ?[1].

[1]: https://css-tricks.com/snippets/css/using-font-face/

Re:The New Web Typography by e12e on Sunday February 28, 2016 @02:19PM (#11191946)