Closed Mike-E-angelo closed 2 years ago
I reached out to the .NET team on this one. Here's their response.
If the Blazor code tries to call those other libraries synchronously it will fail. You should either put the other libraries first in the source code, or you should use Blazor’s autostart=false option to avoid initializing the Blazor application code until the other required scripts have loaded.
Wow thank you for looking into this and I admit it's a bit of a knuckleball here in that it is an edge case. That totally makes sense to me, and my only apprehension here is that I wish that this occurred with other browser versions/OS's as well so that I can catch this type of issue way before having to resort to BrowserStack.
I have went ahead and have moved <script src="~/_framework/blazor.server.js"></script>
as the last script tag in the document. From what I understand that is what is being asked here. It still all works on my machine, so nothing has changed in that regard. As I am out of free minutes with BrowserStack, I will have to assume that it is fixed there until I see something in the logs.
Thank you again for looking into this and for the great work/product there. 👍
I am launching a product today, and one of the sweeps I am doing is iPhone/Safari. To my surprise/delight, everything pretty much seems to work, but I am running into problems it appears with iPhone 11 Pro Max 13 and iPhone 11 Pro 13
Here is the error reported:
Incidentally, I am seeing errors like this with my own JS calls. It seems as if JavaScript is not loaded/ready. It is intermittent and rare, but still concerning. I wonder if it's related? Example of another issue similar, but unrelated to BlazorSize:
FWIW I am using BrowserStack to try this (which is really super amazing): https://live.browserstack.com/dashboard
If you are able to load up a device, the address where this fails is one of the following: https://alpha.starbeam.one/market/products https://alpha.starbeam.one/market/publishers
Btw, I have this project listed in my acknowledgments. Thank you for all the great work over there. 🙏