codeeditor: support lazily loading themes and modes