ASP.NET MVC site showing code blocks

I am trying to help a dev team trouble shoot an issue they are experiencing on a new MVC site. The problem presents itself on screen refresh, most often on mobile devices but has also been seen on PCs and Macs. The issue is the html page shows code blocks on the page reload. Sometimes, when the page fully loads, the code blocks disappear but most of the time they stay until another page refresh clears them up. This issue is sporadic and is not one we have been able to recreate with any specific routine.

Here are some specifics:

MVC version is 5.2.3.0
IIS 8 on Windows server 2012 Standard R2
Browsers: Edge, IE, Chrome, Firefox and Safari - several versions of all browsers being used but all are current versions

Can anyone tell me what could be causing this or troubleshooting steps we can take to isolate the problem?
image.jpeg
gactoAsked:
Who is Participating?
 
MrunalConnect With a Mentor Commented:
hi,
seems you are angular js.

To solve your problem:
You can use the ngCloak directive.

Reference:
https://docs.angularjs.org/api/ng/directive/ngCloak
1
 
gactoAuthor Commented:
yes we are using angular js.

i will have our team test with ngCloak and see if that solves the problem.
0
 
gactoAuthor Commented:
Mrunal - this solved our problem. thanks again for the help.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.