Friday, December 7, 2018

Re: Generate user.agent independent code

OK, I just realized that this somehow only worked for Firefox.

Maybe I have to explain the project structure a bit more. I have 5 projects of which I compile 2 and they depend on the others. It doesn't matter whether I put <collapse-all-properties/> in just the main projects or in all of them. The problem remains the same:

When trying to load then the nocache files it fails on the file that nocache is supposed to load.

Failed to execute 'importScripts' on 'WorkerGlobalScope': The script at 'http://localhost:4400/pdfwebviewer/webworker/0CBE8FF2A030D479B8A35F1BF1905C26:4.cache.js' failed to load.

As you can see there is this :4.cache.js

The code from the nocache looks like this:

function importScriptFromBase(){
  var $intern_0 = 'gecko1_8', $intern_1 = '0CBE8FF2A030D479B8A35F1BF1905C26', $intern_2 = 'ie10', $intern_3 = ':1', $intern_4 = 'ie8', $intern_5 = ':2', $intern_6 = 'ie9', $intern_7 = ':3', $intern_8 = 'safari', $intern_9 = ':4', $intern_10 = 'user.agent', $intern_11 = '.cache.js', $intern_12 = 'webworker', $intern_13 = '';
  var strongName;
  try {
    unflattenKeylistIntoAnswers([$intern_0], $intern_1);
    unflattenKeylistIntoAnswers([$intern_2], $intern_1 + $intern_3);
    unflattenKeylistIntoAnswers([$intern_4], $intern_1 + $intern_5);
    unflattenKeylistIntoAnswers([$intern_6], $intern_1 + $intern_7);
    unflattenKeylistIntoAnswers([$intern_8], $intern_1 + $intern_9);
    strongName = answers[computePropValue($intern_10)];
  }
   catch (e) {
    return;
  }
  var url_0 = strongName + $intern_11;
  importScripts(url_0);
  gwtOnLoad(undefined, $intern_12, $intern_13);
}

So for gecko1_8 this works fine but tries to load the cache file with a weird ending. Any hints on this?

On Fri, 30 Nov 2018 at 21:17, Lars <lars.gemeinhardt@gmail.com> wrote:
Try <collapse-all-properties />
See https://www.sencha.com/blog/how-to-reduce-compilation-time-for-your-gxt-projects/

--
You received this message because you are subscribed to a topic in the Google Groups "GWT Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/qyF5It-UR94/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment