logoalt Hacker News

TheRealPomaxyesterday at 7:18 PM1 replyview on HN

> The colors in the HTML snippet above comes from within the font itself, the code is plain text, and requires no JavaScript.

But then why does the color disappear if I disallow scripts on this page? Instead of your font, now it uses Consolas.

Are you using JS to load the font in? (if so... web fonts don't need JS to load =)


Replies

california-ogyesterday at 7:24 PM

Most likely because your JS blocker also blocks custom fonts. It works fine without JS.

show 1 reply