Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Compilation results are big

    Hi Everyone,

    when I compile a small StartGwt project, the resulting "www" folder ends at about 15 Mb. I would like to make that smaller. I tried to inherit from com.smartgwt.SmartGwtNoScript instead of com.smartgwt.SmartGwt. I also tried to change my html page to load as less java script as possible:

    <script src=sc/modules/ISC_Core.js?isc_version=7.0beta.js></script>
    <script src=sc/modules/ISC_Foundation.js?isc_version=7.0beta.js></script>
    <script src=sc/modules/ISC_Containers.js?isc_version=7.0beta.js></script>
    <script src=sc/modules/ISC_Grids.js?isc_version=7.0beta.js></script>
    <script src=sc/modules/ISC_Forms.js?isc_version=7.0beta.js></script>
    <script type="text/javascript">document.write("<"+"script src=sc/skins/Enterprise/load_skin.js?isc_version=7.0beta.js><"+"/script>");</script>

    Even when I do that, my "www" folder is still pretty big (13.4 Mb). I am now looking at what is contained in the "www" to see what I can simply delete after the compilation. First of all, I noticed that sc\modules contains almost the same set of modules as sc\system\development. Does anybody knows the difference between these two folders? Is there one of them that I can delete?

    Regards,
    Maxime

    #2
    Not all the files are loaded, unless required so it will not affect the download times. However if compile output size for any reason is a concern, you could delete the sc\system\development directory. It is used by the Developer Console, which typically is not used in deployments.

    Again, you should examine the files transferred when your page loads via Firebug or YSlow, rather than go by the size of your compile output directory.

    Comment

    Working...
    X