如何解决如何在角度构建后在 index.html 的脚本标签中注入 defer
我想在 angular 应用程序中延迟加载我的 vendor.js 包。我应该寻找哪种方法,因为没有直接的方法来延迟角度加载包。 这是我的 src index.html
<!DOCTYPE html>
<html lang="en">
<head>
<Meta charset="utf-8" />
<title>DeferLoding</title>
<base href="/" />
<Meta name="viewport" content="width=device-width,initial-scale=1" />
<link rel="icon" type="image/x-icon" href="favicon.ico" />
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link
href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap"
rel="stylesheet"
/>
<link
href="https://fonts.googleapis.com/icon?family=Material+Icons"
rel="stylesheet"
/>
</head>
<body class="mat-typography">
<app-root></app-root>
</body>
</html>
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。