Comments (2)
Thank you @iShawnWang . I think that useScripts
hook is referring to being able to load any script truly at runtime dynamically. Which is very powerful.
I was referring to much simpler option of being able to load the antd
, eCharts
, react
etc. from the <head>
section of the page, so that webpack does not need to bundle them. This improves the performance, due to reduced bundle size as well as loading from CDN heavily uses the network caches, browser caches etc.
The dynamic
loading part I was referring to was chunking by the webpack such that components are loaded on demand rather than in a single big module.
Ofcourse, if the useScript
hook can be used then it may solve all these problems too, but looks like it is slightly complex to implement. I could be wrong. If it is not complex, then it is also a good solution to consider.
from sula.
I think this is what you need iShawnWang/kilobyte#14 ~
which is typescript version of https://usehooks.com/useScript/
from sula.
Related Issues (20)
- Bug: ModalForm设置layout: 'vertical' 没有效果,无法实现form的layout: 'vertical'效果 HOT 1
- Feature: Table组件的remoteDataSource能否支持函数Promise回调形式
- Bug: StepForm的back属性不好使
- Feature: 希望dependency能支持自定义配置项
- 组件的声明提示不是特别友好,会出现类型冲突
- Feature: [MFSU] change to esm module import HOT 1
- Bug:运行项目后会报 ./src/.umi/SulaConfigProviderWrapper.js 里面的 getLocale 函数导出错误警告 HOT 8
- Feature: 表单项A的值发生变化,如何同步值到表单项B上,2表单项的值保持同步一致
- Bug: CreateForm内存泄漏
- Feature: route传state信息
- Bug: Query table 无法动态的控制查询条件的显示隐藏
- Feature: Table有loading prop吗? HOT 2
- Question: 正式版又delay了吗?
- Question: rangepicker设置默认时分秒不起作用 HOT 1
- Question: 当前项目的可编辑表格能否支持form.ErrorList 进行表格的长度判断
- Question: 请问IE支持程度怎么样
- Question: sula-builder源码发布了么?
- Question: 文档地址打不开了
- 可视化搭建平台地址都无法打开了 HOT 1
- Question: HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sula.