GithubHelp home page GithubHelp logo

Comments (6)

jia000 avatar jia000 commented on May 17, 2024

只要不渲染,是不会去加载monaco-editor相关的的js资源的

from tmagic-editor.

jia000 avatar jia000 commented on May 17, 2024

代码编辑的频率高不高取决于业务,如果业务到后期是会有需要配置函数这种需求的,会需要在编辑器中写代码

from tmagic-editor.

kevnwei avatar kevnwei commented on May 17, 2024

但是貌似还是把代码打包到vendor里面了(还是我打包的姿势不对?),并且浏览器要一起下载,不管有没有渲染,页面加载比较慢影响用户体验。另外配置函数这种需求,一般都是简单的逻辑,感觉暂时不需要monaco-editor这么重量级的产品~,而且她还包含各种语言支持。

from tmagic-editor.

jia000 avatar jia000 commented on May 17, 2024

是会把monaco-editor的基础代码打进去,语言支持相关的代码是用到时才加载的

from tmagic-editor.

jia000 avatar jia000 commented on May 17, 2024

后续改成整个monaco-editor动态加载,不需要可以不加载的模式

from tmagic-editor.

jia000 avatar jia000 commented on May 17, 2024

不支持了

from tmagic-editor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.