I am working on ASP.NET MVC 4 HTML5 project. Recently we have added marketing scripts that are taking up to 10 seconds to load. When I went to look for what's going on I have found that none of scripts were loaded asynchronously.
My initial response was to add async
on each and every third-party script that we have, but then I thought of what implications would be. I am not talking about our local scripts that have to be loaded in a specific order.
The only thing I can think of is if the user manages to complete the form and get to the next page before the script loads third-party scripts would not get marketing information for that page (which I am OK with).
What are other things that could happen when switching scripts to be async
that can ruin my day?
UPDATE: Since for some it's not obvious what I am looking for here's one example.