I have recently upgraded my web application from angular 6 to 8. Everything works fine, but sometimes I do see browser page becoming unresponsive. It never loads until I close the tab and reopen the application in new tab to continue working. I started facing this issue only after upgrade. Any kind of help in resolving this issue is appreciated.
Asked
Active
Viewed 67 times
0
-
Any errors on the console? – Hugo Noro Feb 05 '21 at 19:47
-
You can use Chrome devtools to record what happens on the page for a few seconds after loading, then inspect the calling tree. – JulienD Feb 05 '21 at 20:30
-
@HugoNoro i do not see any errors in console. – Dev Inspirer Feb 06 '21 at 23:15
-
Any warnings during webpack compilation? Does this happen on all views or only on one particular view, with a specific component? – Hugo Noro Feb 07 '21 at 12:41
-
@HugoNoro, Could this be the cause? I get this warning everytime but page does not become unresponsive everytime. It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true when you set up this control in your component class, the disabled attribute will actually be set in the DOM for you. We recommend using this approach to avoid 'changed after checked' errors. Example: form = new FormGroup({ first: new FormControl({value: 'Nancy', disabled: true}, Validators.required), last: new FormControl('Drew', Validators.required) }); – Dev Inspirer Feb 10 '21 at 15:28
-
No. That’s a very specific warning should not affect the page. Have you tried running lighthouse in devtools? It might raise an issue on something meaningful – Hugo Noro Feb 10 '21 at 15:33
-
@HugoNoro anything specific I need to look into when I run the light house? In the opportunities, I was advised to remove unused javascript to make page load faster – Dev Inspirer Feb 10 '21 at 15:44
-
Those analytics are telling you the results against a few metrics but try to check if something is detected as a big error or an error message that it might tell you something that it’s not supposed to happen – Hugo Noro Feb 10 '21 at 15:46