Code Split

22 views
Skip to first unread message

Bhaskar

unread,
Aug 26, 2011, 12:30:58 AM8/26/11
to Google Web Toolkit
Hi,

I have implemented code split in my module. i can see "deferredjs"
folder got created and i can see 1.cache.js and 2.cache.js files.

how can i ensure that these are getting loaded when we send a request.
even when i see in fire bug also i did not see are getting loaded.

can any one help me how to test this?

Thank you in advance.

Regards,
Bhaskar

Raphaël Brugier

unread,
Aug 26, 2011, 3:32:48 AM8/26/11
to google-we...@googlegroups.com
Hi,

To get information on how your code is split you can use the soyc (story of your compile) flag, see:
http://code.google.com/webtoolkit/doc/latest/DevGuideCompileReport.html

To get information on when your splitted code is loaded, use the speed tracer plugin for chrome:
http://code.google.com/webtoolkit/speedtracer/index.html


Regards,
Raphaël Brugier.

Jens

unread,
Aug 26, 2011, 4:23:18 AM8/26/11
to google-we...@googlegroups.com
Have you compiled your app and used Firebug to see what is loaded? If not do so, because in dev mode code behind a split point is not loaded asynchronously via a ajax call. This only happens when you have compiled your app and don't use dev mode.

-- J.
Reply all
Reply to author
Forward
0 new messages