niutech/vue-in-web-worker
소개
Vue.js in Web Worker
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalVue.js in Web Worker
This is a starter app of Vue.js working in Web Worker using WorkerDOM, bundled by Rollup.js. This allows Vue.js to offload its work to a background thread and send updates back to the main thread asynchronously, which should greatly increase rendering performance. See this blog post for details.
Benchmarks
Compare these rendering performance tests:
Developing
Develop you Vue.js app as always, using main.js as an entry point. In index.html, add a wrapper around #app pointing to main.js and inject worker-dom.js library like this:
<main src="dist/main.js">
<div id="app"></div>
</main>
<script src="dist/worker-dom.js"></script>
Building
First run npm install to set up the project. To build the files in dest folder, run npm run build or rollup -c. Then start the local web server e.g. python -m http.server and go to http://localhost:8000. Your index.html page should load worker-dom.js, which should asynchronously fetch and load both worker.mjs and main.js modules into Web Worker.
License
© 2021 Jerzy Głowacki under Apache Lincese 2.0
관련 프로젝트 살펴보기
불러오는 중…