Hello,

Thanks for the explanation, 

<set-configuration-property name="user.agent.runtimeWarning" value="false"/>


did the job, and removed "$wnd.setTimeout($entry(assertCompileTimeUserAgent));" 
at the entry point. 


But document.compatMode.severity=IGNORE did not change anything in code 
generation, it still generates


severity = ($clinit_DocumentModeAsserter$Severity() , IGNORE);
> if (severity == IGNORE) {
> return;
> }


It is unclear for what reason GWT generates (and never uses in the generated 
code):


if (!$wnd_0.__gwt_stylesLoaded) {
>   $wnd_0.__gwt_stylesLoaded = {};
> }
> if (!$wnd_0.__gwt_scriptsLoaded) {
>   $wnd_0.__gwt_scriptsLoaded = {};
> }



It also would be very nice to remove that:

 

> function isHostedMode() {...} if (isHostedMode()) { alert(...); }



And I see a lot of never used variables in the generated code, ex:


var Lcom_google_gwt_core_client_impl_SchedulerImpl_2_classLit = 
> createForClass(22);
> var onBodyDoneTimerId = setInterval(function () { ....
> var $gwt_version = "2.8.0";
> var $stats = $wnd.__gwtStatsEvent ? function (a) { ....
> var $strongName = '6D7BE6648CA01BEDC1B199CE04D6BBCD';
> var Lcom_google_gwt_core_client_impl_StackTraceCreator$Collector_2_classLit 
> = createForClass(37);
> var 
> Lcom_google_gwt_core_client_impl_StackTraceCreator$CollectorLegacy_2_classLit 
> = createForClass(18);
> var 
> Lcom_google_gwt_core_client_impl_StackTraceCreator$CollectorModern_2_classLit 
> = createForClass(19);


Is it an issue that the GWT generates never-used variables ? 


Thanks




-- 
You received this message because you are subscribed to the Google Groups "GWT 
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/e5d96987-4989-4deb-ba75-40252368430d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to