3

My Angular JS app is loading slowly on Firefox browser. As a result of this, some of the hidden elements are showing up on the page during page load before getting hidden again. I am using AngularJS material also. I tried moving the script tags to the head. This is fixing the issue in Firefox but in Chrome it is loading slowly. Any suggestions on how to fix this?

Akber Iqbal
  • 14,487
  • 12
  • 48
  • 70
  • for hidden elements, did you try ng-cloak? if you look at the developer tools, you can see that some browser-extensions can increase page load time also... best to compare without any browser extensions in both browsers – Akber Iqbal Oct 30 '18 at 04:23
  • It worked!! Thanks a lot. Can you please add it as an answer? – Deepa Sreekumar Oct 30 '18 at 04:52

1 Answers1

4

For hidden elements, try ng-cloak

If you look at the developer tools, you can see that some browser-extensions can increase page load time also... best to compare without any browser extensions in both browsers

georgeawg
  • 48,608
  • 13
  • 72
  • 95
Akber Iqbal
  • 14,487
  • 12
  • 48
  • 70