Привет. Подскажите кто понимает о чем здесь речь.
Читаю как оптимизировать скрипты для скорости.
Цитата.
With laravel you have included elixir or mix, great tool for merging and minifying scripts.
The problems are with external scripts. How to handle google analytics script or mailchimp script. They suggest to keep loading scripts from their servers to always have up to date version. But they do not have cache control headers and google will not forgive you even analytics.js file.
We could just merge them with our internal scripts. So first we need a way to download them and then make sure we have new version at least every day.
This way we will have one file with internal and external scripts which will be updated every day.
Make sure to add async to your script element.
Как я могу асинхронно добавить скрипт в webpack.mix
Главное зачем? Чего ты хочешь добиться добавив асинхронно скрипт в mix