Changeset 7812 for trunk/demos/storage

Show
Ignore:
Timestamp:
03/27/07 19:28:21 (22 months ago)
Author:
BradNeuberg
Message:

Sped up the page load time of Moxie; the bottleneck was the number of resources being loaded on page load, in addition to the synchronous network calls for Dojo Widget for the Editor2 widget. At the beginning of the optimization session we had 27 resources on page load -- now we have 2. Page load time is much faster. This includes a new 'moxie' task in buildscripts/build.xml, but I'm not going to check that in until we do the Dojo Offline branch tomorrow morning because the head of subversion is changing too much for us

Location:
trunk/demos/storage
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/demos/storage/editor.html

    r7797 r7812  
    4747                .widgetContents { padding: 8px 5px 8px 5px; } 
    4848                .status { position: absolute; right: 5px; padding-left: 5px; padding-right: 5px; background: red; color: white; } 
     49                 
     50                /* Force the Editor2Toolbar widget to use a single GIF file for all it's icons */ 
     51                .dojoE2TBIcon { background-image: url(../../src/widget/templates/buttons/aggregate.gif) !important; } 
    4952        </style> 
    5053</head> 
  • trunk/demos/storage/editor.js

    r7797 r7812  
    77dojo.require("dojo.storage.*"); 
    88dojo.require("dojo.off.*"); 
     9dojo.require("dojo.off.ui"); 
    910dojo.require("dojo.sync"); 
    1011 
     
    3435                                        djConfig.baseRelativePath + "src/widget/templates/richtextframe.html", 
    3536                                        djConfig.baseRelativePath + "src/widget/templates/images/toolbar-bg.gif", 
    36                                         djConfig.baseRelativePath + "src/widget/templates/buttons/bold.gif", 
    37                                         djConfig.baseRelativePath + "src/widget/templates/buttons/italic.gif", 
    38                                         djConfig.baseRelativePath + "src/widget/templates/buttons/underline.gif", 
    39                                         djConfig.baseRelativePath + "src/widget/templates/buttons/strikethrough.gif", 
    40                                         djConfig.baseRelativePath + "src/widget/templates/buttons/sep.gif", 
    41                                         djConfig.baseRelativePath + "src/widget/templates/buttons/justifyleft.gif", 
    42                                         djConfig.baseRelativePath + "src/widget/templates/buttons/justifycenter.gif", 
    43                                         djConfig.baseRelativePath + "src/widget/templates/buttons/justifyright.gif", 
    44                                         djConfig.baseRelativePath + "src/widget/templates/buttons/forecolor.gif", 
    45                                         djConfig.baseRelativePath + "src/widget/templates/buttons/hilitecolor.gif", 
    46                                         djConfig.baseRelativePath + "src/widget/templates/buttons/insertorderedlist.gif", 
    47                                         djConfig.baseRelativePath + "src/widget/templates/buttons/insertunorderedlist.gif", 
    48                                         djConfig.baseRelativePath + "src/widget/templates/buttons/outdent.gif", 
    49                                         djConfig.baseRelativePath + "src/widget/templates/buttons/indent.gif", 
    50                                         djConfig.baseRelativePath + "src/widget/templates/buttons/createlink.gif", 
    51                                         djConfig.baseRelativePath + "src/widget/templates/buttons/insertimage.gif", 
    52                                         djConfig.baseRelativePath + "src/widget/templates/buttons/inserthorizontalrule.gif" /*, 
    53                                         djConfig.baseRelativePath + "nls/dojo_en.js"*/ 
     37                                        djConfig.baseRelativePath + "src/widget/templates/buttons/aggregate.gif", 
     38                                        djConfig.baseRelativePath + "nls/dojo_en.js" 
    5439                                        ]); 
    5540