Initial loading is so low. Fast render and Appcache seems not work


#1

the app’s initial loading is so slow. so i add the Fast-render package. and change the route like this:

this.route(‘quote/:_id’,{
name: ‘quote’,
waitOn:function(){
return [Meteor.subscribe(‘offer’,this.params._id),Meteor.subscribe(‘allBooks’,this.params._id)];
},
data: function() { return { quotebyid: Books.findOne(this.params._id)};},
fastRender: true
});

i am not sure whether the fast-render is working, the initial loading is still very slow the result of FastRender.debugger.getPayload() in console is this,

Object {collectionData: Object, subscriptions: Object,
loginToken:“V3lpdsDlXG3g8Jp36iCRihSIqN0txnS1QXfdmFRj7qA”}
collectionData: Object
books: Array[1]
kadira_settings: Array[1]
offer: Array[1]
users: Array[1]
_ proto _: ObjectloginToken: "V3lpdsDlXG3g8Jp36iCRihSIqN0txnS1QXfdmFRj7qA"
subscriptions: Object
_ proto _: Object
_ proto _: Objectd

and i am not sure whether Fast-render can solve my problem, the total size of client and lib folder are only 44kb. i have try Appcache package, it says the total cache is up to 10 MB. i suspect it may due to some package, this is the package list, i don’t know need i to deal with the packages?

meteor-platform
accounts-password
fourseven:scss
iron:router
zimme:iron-router-active
anti:fake
matb33:collection-hooks
aldeed:collection2
aldeed:autoform
meteoric:ionic-sass
meteoric:ionicons-sass
meteoric:ionic
meteoric:autoform-ionic
twbs:bootstrap
aslagle:reactive-table
francocatena:compass
momentjs:moment
meteorhacks:npm
npm-container
houston:admin
reactive-var
rzymek:moment-locale-zh-cn
kevohagan:sweetalert
meteorhacks:kadira
meteorhacks:fast-render
appcache

and i wonder can i control whether to load specific package for specific url?


#2

This question is closed.
I have solved, it because of the internet, I buy a CDN for the cloud server , then loading speed is highly improved.