Wednesday, August 26, 2015

Re: How to combine or reduce number of <style> tag for GWT generated page

You could copy the StyleInjector class from GWT into our own project and then modify the constant StyleInjector.StyleInjectorImplIE.MAX_STYLE_SHEETS .

StyleInjector (used by CssResource) appends up to 31 <style> tags and after that searches the shortest <style> tag to append additional css. If you reduce the constant to 25 or so you always have some tags available for external use.

Alternatively create a CssResource (or TextResource + StyleInjector) for CKEditor and don't let it create style tags on its own.

-- J.

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment