Slow Login. About 1 minute to fetch sw.js when using yarg dependency

Dear Srs.,

Each time i start the application i have to wait about a minute in the best case just to show the login screen. Y use de inspect in chrome and i can see that the file sw.js is not sent and the server waits to much for a 2.5Kb file.

I would like to know if ther is a configuration or else that is missing. For my project i just create entities and made my first screen.

I’ve been making tests and i found that when i add yarg as a dependency (compile ‘com.haulmont.yarg:yarg:2.0.1’) is when the project get this lag. Without yarg the login take 5 seconds.

Is there a problem in yarg? or what else i should i do?.

Thanks in advance for your help.

image

Even when i retire the dependency, the project remains slow to show the login screen. I would appreciate your help.

Hi,

Unfortunately, I can reproduce the problem, neither reports add-on nor yarg add sw.js dependency. Did you add any other dependencies? Could you please share a demo project, so I try to investigate the problem? As an option, try to open the app without any browser extension.

Also, I’d recommend using the latest yarg release 2.2.6.

Regards,
Gleb

1 Like

Thank you, your right, in the instructions is:

dependencies {
    compile 'com.haulmont.yarg:yarg:2.0.1'
}

But if you use the version 2.2.6, that you said it’s ok!