Angular 7 DOM Events freeze Sharepoint.

%3CLINGO-SUB%20id%3D%22lingo-sub-1431572%22%20slang%3D%22en-US%22%3EAngular%207%20DOM%20Events%20freeze%20Sharepoint.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1431572%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20a%20form%2C%20that%20we%20have%20done%20a%20lot%20of%20work%20on%20in%20the%20last%20couple%20months.%20Made%20100's%20of%20small%20changes%20in%20the%20last%20couple%20months%20and%20about%20two%20weeks%20ago%2C%20I%20made%20an%20addition%20to%20the%20form%20that%20causes%20the%20form%20to%20freeze%20Sharepoint.%20It%20takes%20about%2010%20minutes%20for%20the%20page%20to%20recover%20and%20the%20actions%20to%20take%20place.%20In%20the%20mean%20time%2C%20there%20are%20two%20things%20happening%3B%20%22zone.js%22%20and%20%22xhr%20rerendering.%22%20I%20reverted%20the%20code%20to%20before%20this%20takes%20place%20to%20find%20the%20cause%20of%20the%20problem%2C%20thinking%20that%20there%20may%20be%20code%20that%20sharepoint%20didn't%20agree%20with.%20Unfortunately%2C%20no%20matter%20what%20I%20code.%20The%20page%20exhibits%20the%20same%20behavior.%20I%20cannot%20add%20another%20element%20binding%20to%20my%20Angular%207%20template.%20Purely%20from%20an%20Angular%20perspective%2C%20there%20is%20nothing%20wrong%20with%20my%20code.%20I'm%20not%20suggesting%20it's%20perfect%2C%20but%20it%20runs%20beautifully%20on%20my%20local%20machine.%20There%20is%20a%20problem%20between%20the%20code%20and%20sharepoint.%20A%20lot%20of%20these%20requirements%20are%20expected%20on%20many%20of%20the%20pages%20we%20have%2C%20this%20is%20a%20massive%20problem%20for%20our%20business.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20and%20all%20insights%20would%20be%20appreciated.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1431572%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EHybrid%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EResponsive%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1431630%22%20slang%3D%22en-US%22%3ERe%3A%20Angular%207%20DOM%20Events%20freeze%20Sharepoint.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1431630%22%20slang%3D%22en-US%22%3EIn%20case%20it's%20of%20any%20consequence%2C%20I%20externalized%20zone.js%20and%20wrote%20custom%20change%20detection%20in%20the%20component.%20At%20this%20point%20the%20performance%20problem%20changed%20from%20%22zone.js%22%20to%20%22xhr%20rerendering%22%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1431657%22%20slang%3D%22en-US%22%3ERe%3A%20Angular%207%20DOM%20Events%20freeze%20Sharepoint.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1431657%22%20slang%3D%22en-US%22%3EFeel%20free%20to%20ask%20any%20questions%20that%20you%20have%2C%20I%20will%20answer%20them%20to%20the%20best%20of%20my%20ability.%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

I have a form, that we have done a lot of work on in the last couple months. Made 100's of small changes in the last couple months and about two weeks ago, I made an addition to the form that causes the form to freeze Sharepoint. It takes about 10 minutes for the page to recover and the actions to take place. In the mean time, there are two things happening; "zone.js" and "xhr rerendering." I reverted the code to before this takes place to find the cause of the problem, thinking that there may be code that sharepoint didn't agree with. Unfortunately, no matter what I code. The page exhibits the same behavior. I cannot add another element binding to my Angular 7 template. Purely from an Angular perspective, there is nothing wrong with my code. I'm not suggesting it's perfect, but it runs beautifully on my local machine. There is a problem between the code and sharepoint. A lot of these requirements are expected on many of the pages we have, this is a massive problem for our business.

 

Any and all insights would be appreciated. 

2 Replies
Highlighted
In case it's of any consequence, I externalized zone.js and wrote custom change detection in the component. At this point the performance problem changed from "zone.js" to "xhr rerendering"
Highlighted
Feel free to ask any questions that you have, I will answer them to the best of my ability.