一、资源加载优化:减少首屏等待时间 1.1 代码分割与按需加载 现代前端框架(如React/Vue)支持动态导入语法,通过import()实现组件级懒加载。例如在React中: const LazyComponent = React.lazy(() => import(……