小K

Results 8 comments of 小K

配置如图 ![image](https://user-images.githubusercontent.com/22857964/157359012-3cdd2c64-dd50-4eed-acd3-3c29cd0b3339.png)

> I think it's important to note that lazy loading is done at the **module** level. Your component will be registered on a module, then you'll lazy load the module...

@abi more request this feature at china very much

> 项目打包的js是放在body底部加载的,你看到的head里面的js只是link preload 我的意思是,我加一个第三方的CDN脚本,结果是,打包的js先运行,我想让我第三方的先运行

这里应该明显是打包出来的js先运行了,但是要依赖第三方的,类似不打包的静态的html和js,按照顺序进行加载的话,相互依赖,这是我想要的效果

> 1、第三方放在head加载,通过`customheadscript` 2、自行在`layout/index.tsx`控制injectScript和自定义的script顺序 这个我去掉了也会加载在head里。

有个疑问,明明下面已经有引入了,为啥还有动态上面的引入,都是一样的js