I just wondered why my compiled files get bigger and bigger. Though I
had a look inside the generated JavaScript code...
I use ClientBundle with ImageResources for my icons. And I always
thought that my application uses this generated composite .png file to
render the images? I think I've never seen this Base64 Code inside(!)
the generated JS files.
The next strage thing is, that I have at least 8 Base64 strings in the
Code. But my ClientBundle only has 7 images. After copy & paste those
strings in the browser's URL field I found the wrong pic. It's a blue
gradient. I think it comes from GWT CellList (oder some other cell
stuff).
Is there a way to get rid of those images I'm not using? I know it's
just a few KB. BUT(!) it's a few KB here and a few there and at the
end that maybe 20% of my application.
... and now that I'm already asking questions about minimizing the
output:
- In my JS files there are lot's of exceptions. I don't need them!
There's not a single line of code where I use the exception messages.
- And strings like this: "Your *.gwt.xml module configuration
prohibits the use of the current doucment rendering mode". When I
deploy my application there's NO xml file.
My compile flags are: -localWorkers 2 -XdisableClassMetadata -
XdisableCastChecking -optimize 9
And optimizations of gwt.xml:
<set-configuration-property name="UiBinder.useSafeHtmlTemplates"
value="true" />
<set-configuration-property name="CssResource.obfuscationPrefix"
value="empty" />
<set-property name="compiler.stackMode" value="strip" />
I hope someone can help me (and many others) improving out GWT apps by
reducing size :)
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment