Question

is GWT CSSResources limits css file size should not be more than 65535 bytes. why so?

Was it helpful?

Solution

This is more of a Java limitation than GWT. From java perspective the work around is splitting up the methods.

However for GWT you just need to split up your Client Bundle contents into smaller chunks.

Ideally GWT should have handled this for you by chunking up the file you are using in Client bundle. But since this is a corner case i guess you might as well log a bug. Similar Bugs list in GWT.

Also, your immediate solution would be to use alternative

1) If the text contents can be split across multiple files. Do it!!!!

2) If text contents are changing and hence cannot be split , avoid using Client Bundle.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top