
public static class StyleInjector extends Object
#inject, #injectAtEnd, and #injectAtStart use
Scheduler#scheduleFinally to minimize the number of individual style
elements created.
The api here is a bit redundant, with similarly named methods returning
either void or StyleElement — e.g.,
void inject(String) v.
StyleElement injectStylesheet(String). The
methods that return StyleElement are not guaranteed to work as
expected on Internet Explorer. Because they are still useful to developers on
other browsers they are not deprecated, but IE developers should
avoid the methods with StyleElement return values.
Copyright © 2018. All rights reserved.