Node.js的Web框架BigPipe.zip

时间:2022-08-08 03:19:29
【文件属性】:
文件名称:Node.js的Web框架BigPipe.zip
文件大小:54KB
文件格式:NONE
更新时间:2022-08-08 03:19:29
开源项目 BigPipe 是一个比较激进的 Node.js 的 Web 框架。其思路是使用多个可重用的网页部件来组合整个网页。这些部件称为 Pagelets ,然后通过在服务器和浏览器上进行不同的执行方法来组合。这使得前端页面可以按进度进行内容的渲染,提升了前端的速度。Most web frameworks are based on a request and response pattern, a request comes in, we process the data and output a template. But before we can output the template we have to wait until all data has been received in order for the template to be processed. This doesn't make any sense for Node.js applications where everything is done asynchronously. When receiving your first batch of data, why not send it directly to the browser so it can start downloading the required CSS, JavaScript and render it. 标签:BigPipe
【文件预览】:
bigpipe-master
----.travis.yml(598B)
----locallink.sh(796B)
----index.js(26KB)
----package.json(2KB)
----test()
--------dist()
--------middleware.test.js(883B)
--------pipe.test.js(35KB)
--------lib()
--------common.js(908B)
--------fixtures()
----SECURITY.md(2KB)
----middleware()
--------defaults.js(414B)
----CONTRIBUTING.md(11KB)
----HEALTH.md(18KB)
----LICENSE.md(1KB)
----.gitignore(142B)
----lib()
--------file.js(5KB)
--------compiler.js(18KB)
--------collection.js(2KB)
----README.md(13KB)
----symlink.sh(2KB)

网友评论