Sorry, animate is not an attribute, it is a method...
-----Mensaje original-----
De: Maria Jose Esteve <[email protected]>
Enviado el: domingo, 12 de diciembre de 2021 19:35
Para: [email protected]
Asunto: RE: IE11 takes several seconds to load
- SimpleLoader uses the "animate" attribute (this seems the most correct
because in IE CSS transformations give a lot of problems).
- When we compile TDJ we get a warning:
WARNING:
D:/Develop_Royale/Projects/Royale-SDK/royale-asjs-fork/examples/jewel/TourDeJewel/target/javascript/bin/js-debug/components/SimpleLoader.js:73:
WARNING - variable Animation is undeclared
this.components_SimpleLoader_animation = /* implicit cast */
org.apache.royale.utils.Language.as(this.element["animate"]([{"transform":"rotate(0deg)"},
{"transform":"rotate(360deg)"}], timings), Animation, true);
The generated code is:
components.SimpleLoader.prototype.set__indeterminate = function(value) {
if (this.components_SimpleLoader__indeterminate !== value) {
this.components_SimpleLoader__indeterminate = value;
if (this.components_SimpleLoader__indeterminate) {
if (!this.components_SimpleLoader_animation) {
var /** @type {Object} */ timings = {"duration":1000,
"iterations":Infinity};
this.components_SimpleLoader_animation = /* implicit cast */
org.apache.royale.utils.Language.as(this.element["animate"]([{"transform":"rotate(0deg)"},
{"transform":"rotate(360deg)"}], timings), Animation, true);
}
else
this.components_SimpleLoader_animation.play();
} else {
if (this.components_SimpleLoader_animation)
this.components_SimpleLoader_animation.pause();
}
}
};
Animation is an interface defined in royale-typedefs (public interface
Animation extends EventTarget) but yet it doesn't seem to recognize it... do
you know what this is telling us?
Hiedra
-----Mensaje original-----
De: Maria Jose Esteve <[email protected]> Enviado el: domingo, 12 de diciembre
de 2021 1:15
Para: [email protected]
Asunto: RE: IE11 takes several seconds to load
A little more research...
If we execute the example of the TDJ, of the SimpleLoader[1], in IE11 it is not
shown, in this case it does not delay the loading of the application, it simply
does not work [2].
[1] https://royale.apache.org/tourdejewel/#!progressloader_panel
[2]
https://drive.google.com/file/d/1Uip8pe3QrZM4bNhFHHpBfQKvcychLegp/view?usp=sharing
This error is "known", I have found a lot of information about it, and I have
tried some of the solutions specified, and ... I am testing some changes in
SimpleLoader... (I'm sure Carlos could give us some light on this... I see his
comments...)
Hiedra
-----Mensaje original-----
De: Maria Jose Esteve <[email protected]> Enviado el: sábado, 11 de diciembre
de 2021 23:01
Para: [email protected]
Asunto: RE: IE11 takes several seconds to load
Hi Hugo, I don't know if I have understood the situation correctly... correct
me if I am wrong:
- We have a problem with minification in Release.
- We have an initial loading problem produced by using 'animate' from
'SimpleLoader' BUT it ONLY occurs in IE11.
It has been ruled out that it is only with Office 2016/365 why do you
comment that you have simply excluded it from compatibility?
- It has not been clear to me if the OS, in this case W10, is also present in
our equation.
- The TEST application "with a simple label" loads the Add-In, right? 😝
These are the assumptions that we know?
One question... are you using @externs with .js inclusion normally?
Hiedra
-----Mensaje original-----
De: Hugo Ferreira <[email protected]> Enviado el: sábado, 11 de diciembre
de 2021 13:24
Para: Apache Royale Development <[email protected]>
Asunto: Re: IE11 takes several seconds to load
I decided to not support Office 2016 for Windows.
It's easy to remove from the manifest file.
Hugo Ferreira <[email protected]> escreveu no dia sábado, 11/12/2021
à(s) 11:40:
> Hi,
>
> About Add-In, Microsoft reports that the application starts with a
> blank screen and it's true (almost a minute).
> It takes a long, long time to show the first screen (only happens with
> IE11).
>
> I tested with an application with only a TEST label without anything
> else and even so, takes several seconds to show the label (on Edge,
> Chrome, Safari open instantly).
>
> This is a know issue ?
>