소스 검색

Implement fast-render

This required updating 3stack:presence because of the following bug:

  https://github.com/3stack-software/meteor-presence/pull/3
Maxime Quandalle 9 년 전
부모
커밋
41b23f88ae
5개의 변경된 파일15개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 0
      .eslintrc
  2. 1 0
      .meteor/packages
  3. 4 1
      .meteor/versions
  4. 2 0
      History.md
  5. 7 0
      server/publications/fast-render.js

+ 1 - 0
.eslintrc

@@ -90,6 +90,7 @@ globals:
   BlazeLayout: false
   DocHead: false
   ESSearchResults: false
+  FastRender: false
   FlowRouter: false
   FS: false
   getSlug: false

+ 1 - 0
.meteor/packages

@@ -49,6 +49,7 @@ audit-argument-checks
 kadira:blaze-layout
 kadira:dochead
 kadira:flow-router
+meteorhacks:fast-render
 meteorhacks:picker
 meteorhacks:subs-manager
 mquandalle:autofocus

+ 4 - 1
.meteor/versions

@@ -1,4 +1,4 @@
-3stack:presence@1.0.3
+3stack:presence@1.0.4
 accounts-base@1.2.2
 accounts-password@1.1.4
 aldeed:collection2@2.5.0
@@ -35,6 +35,7 @@ cfs:tempstore@0.1.5
 cfs:upload-http@0.0.20
 cfs:worker@0.1.4
 check@1.1.0
+chuangbo:cookie@1.1.0
 coffeescript@1.0.11
 cosmos:browserify@0.8.1
 dburles:collection-helpers@1.0.4
@@ -75,6 +76,8 @@ meteor-base@1.0.1
 meteor-platform@1.2.3
 meteorhacks:aggregate@1.3.0
 meteorhacks:collection-utils@1.2.0
+meteorhacks:fast-render@2.10.0
+meteorhacks:inject-data@1.4.1
 meteorhacks:picker@1.0.3
 meteorhacks:subs-manager@1.6.2
 meteorspark:util@0.2.0

+ 2 - 0
History.md

@@ -3,6 +3,8 @@
 This release features:
 
 * Card import from Trello
+* Accelerate the initial page rendering by sending the data on the intial HTTP
+  response instead of waiting for the DDP connection to open.
 
 Thanks to GitHub users AlexanderS, fisle, ndarilek, and xavierpriour for their
 contributions.

+ 7 - 0
server/publications/fast-render.js

@@ -0,0 +1,7 @@
+FastRender.onAllRoutes(function() {
+  this.subscribe('boards');
+});
+
+FastRender.route('/b/:id/:slug', function({ id }) {
+  this.subscribe('board', id);
+});