Browse Source

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 years ago
parent
commit
41b23f88ae
5 changed files with 15 additions and 1 deletions
  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
   BlazeLayout: false
   DocHead: false
   DocHead: false
   ESSearchResults: false
   ESSearchResults: false
+  FastRender: false
   FlowRouter: false
   FlowRouter: false
   FS: false
   FS: false
   getSlug: false
   getSlug: false

+ 1 - 0
.meteor/packages

@@ -49,6 +49,7 @@ audit-argument-checks
 kadira:blaze-layout
 kadira:blaze-layout
 kadira:dochead
 kadira:dochead
 kadira:flow-router
 kadira:flow-router
+meteorhacks:fast-render
 meteorhacks:picker
 meteorhacks:picker
 meteorhacks:subs-manager
 meteorhacks:subs-manager
 mquandalle:autofocus
 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-base@1.2.2
 accounts-password@1.1.4
 accounts-password@1.1.4
 aldeed:collection2@2.5.0
 aldeed:collection2@2.5.0
@@ -35,6 +35,7 @@ cfs:tempstore@0.1.5
 cfs:upload-http@0.0.20
 cfs:upload-http@0.0.20
 cfs:worker@0.1.4
 cfs:worker@0.1.4
 check@1.1.0
 check@1.1.0
+chuangbo:cookie@1.1.0
 coffeescript@1.0.11
 coffeescript@1.0.11
 cosmos:browserify@0.8.1
 cosmos:browserify@0.8.1
 dburles:collection-helpers@1.0.4
 dburles:collection-helpers@1.0.4
@@ -75,6 +76,8 @@ meteor-base@1.0.1
 meteor-platform@1.2.3
 meteor-platform@1.2.3
 meteorhacks:aggregate@1.3.0
 meteorhacks:aggregate@1.3.0
 meteorhacks:collection-utils@1.2.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:picker@1.0.3
 meteorhacks:subs-manager@1.6.2
 meteorhacks:subs-manager@1.6.2
 meteorspark:util@0.2.0
 meteorspark:util@0.2.0

+ 2 - 0
History.md

@@ -3,6 +3,8 @@
 This release features:
 This release features:
 
 
 * Card import from Trello
 * 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
 Thanks to GitHub users AlexanderS, fisle, ndarilek, and xavierpriour for their
 contributions.
 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);
+});