Closed sergiutorjescu closed 4 years ago
Apparently this issue was caused by the webApplicationInjector.js in my case, I had it create the script in the app module ts file and the data being loaded async, sometimes the webinjector would be loaded too slow. It needs to be in the index.html.
I have a question, if I want the data-smartedit-allow-origin not to have a hardcoded string value there, because we also make builds on some test servers and then the SE will not work, how could we approach this? Is just hardcoding more values in the attribute the only way to handle this?
@sergiutorjescu Glad you found your solution
We will ask SmartEdit team the question about data-smartedit-allow-origin
Environment Details Spartacus: version 1.2.1 Browser: Chrome Version 80.0.3987.132 (Official Build) (64-bit) OS: Windows 10
Steps to Reproduce In smartedit, go to pages, select one of the pages When the Loading overlay appears, only SOMETIMES it works, the rest of the time it hangs there forever.
However, in Mozilla Firefox it seems to work alot better, we also have a VPN which slows down the actual load time of the DOM. The difference is that Chromes takes in average 5.5 seconds, sometimes more, which I know is alot, this is due to vendor.js being about 10MB of size and images that are not properly adjusted for the web, while Mozilla takes like 600+ miliseconds and less resources seem to load.
Package json file dependencies
## Additional Information The setup was done VIA the SAP documentation, nothing seems to be missing, everything works as it should.
Could the error be related to the DOM loading time? Is is possible that because of the big amount of resources that are loaded some async data "gets lost"?
Browser console error:![image](https://user-images.githubusercontent.com/43534064/81690844-8c514c00-9464-11ea-8f31-d649c0af4eb9.png)
Network tab cx-preview is canceled:![image](https://user-images.githubusercontent.com/43534064/81690986-c6bae900-9464-11ea-8455-e217161fa031.png)
Is there any way to debug this issue? If you need any more information, please feel free to ask. Any help or extra input could help!