Update example to AMD and fix import of CSS.
Using <link> rather than @import because @import with an absolute path doesn't work
(at least on Chrome) because the iframe src is javascript:... instead of a normal href://...

Fixes #17327
(cherry picked from commit f0f296f3e62ca1202b850511f681b47299faf590)