So script inside web page is bad, but script inside font is good? That's interesting definition of bloat. I'd prefer ordinary webpage using locally installed fonts with explicit JavaScript snippet to highlight keywords.
I took it to be along the lines of an "easier to work with" type motivation, rather than reducing package sizes.