{"id":20207426,"url":"https://github.com/tanangular/vite2-vue3","last_synced_at":"2026-05-04T08:42:15.192Z","repository":{"id":144761577,"uuid":"334649381","full_name":"tanangular/vite2-vue3","owner":"tanangular","description":"ทดสอบการ update DOM ด้วย timer กับ vite2 + vue3","archived":false,"fork":false,"pushed_at":"2021-02-21T05:04:47.000Z","size":29,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-08T05:43:56.466Z","etag":null,"topics":["benchmark","dom","frontend","javascript","js","performance","template","vite","vite2","vue","vue3","vuejs"],"latest_commit_sha":null,"homepage":"https://vuejs.org/","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tanangular.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-31T12:25:51.000Z","updated_at":"2021-05-12T16:37:41.000Z","dependencies_parsed_at":"2024-07-25T07:46:08.818Z","dependency_job_id":null,"html_url":"https://github.com/tanangular/vite2-vue3","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tanangular/vite2-vue3","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanangular%2Fvite2-vue3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanangular%2Fvite2-vue3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanangular%2Fvite2-vue3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanangular%2Fvite2-vue3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tanangular","download_url":"https://codeload.github.com/tanangular/vite2-vue3/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanangular%2Fvite2-vue3/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32600967,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T22:12:39.696Z","status":"online","status_checked_at":"2026-05-04T02:00:06.625Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["benchmark","dom","frontend","javascript","js","performance","template","vite","vite2","vue","vue3","vuejs"],"created_at":"2024-11-14T05:29:03.811Z","updated_at":"2026-05-04T08:42:15.173Z","avatar_url":"https://github.com/tanangular.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vite2-vue3\nทดสอบการ update DOM ด้วย timer กับ vite2 + vue3\nเปรียบเทียบจากโจทย์เดียวกัน และใช้ vite (vitejs.dev) เป็น web dev server (โดยหยิบยืม default template ของ vue3 มาเป็นโจทย์) ดังนี้\n\n- มี Hello World Component \u003cHelloWorld /\u003e แสดง Logo framework และ ปุ่ม counter เพิ่มนับค่าจำนวนครั้งของการกดปุ่ม\n- มี Timer Component \u003cTimer /\u003e โดยมี dummy text \"Lorem Ipsum\" .... วางแบบเปลือยๆ เอาไว้ และใช้ setInterval() เพื่อนับเวลาและ update DOM ทุกๆ 1 วินาที\n\nลองเปรียบเทียบผลลัพธ์ตาม video ด้านล่าง\nเราจะเห็นว่า ถึงแม้ผลลัพธ์บน browser จะเห็นผลลัพธ์ที่ไม่แตกต่างกัน\nแต่ถ้าเมื่อเราเปิด developer tool ดู จะเห็นว่า vue3 (https://vuejs.org) มีการกระพริบของ DOM ทั้งก้อน เมื่อ DOM ถูก update อยู่ตลอดเวลา\n\nส่วน svelte3 (https://svelte.dev) จะ update เฉพาะเลข timer ที่เพิ่มขึ้นเท่านั้น และส่วน dummy text \"Lorem Ipsum\" จะไม่ถูก update เลย ตรงนี้จะเห็นว่า svlelte3 ทำเรื่อง rendering performance ได้ดีมากๆ\n\n😃👏🎉🎉👍👍👍\n\n[\u003cimg src=\"https://img.youtube.com/vi/pjVbgxy_qdM/maxresdefault.jpg\" width=\"50%\"\u003e](https://www.youtube.com/watch?v=pjVbgxy_qdM)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftanangular%2Fvite2-vue3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftanangular%2Fvite2-vue3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftanangular%2Fvite2-vue3/lists"}