- Jan 2, 2006
- 10,455
- 35
- 91
For the past 2 weeks I've been building a Meteor project and I would like some thoughts on load order from people who've used and struggled with Meteor.
Take this template:
http://bootstraptaste.com/free-one-page-bootstrap-template-amoeba/
All the important javascript files are referenced at the bottom of index.html. If you try to port this over to a Meteor project, good luck.
Leaving the script tags at the bottom means a ton of the javascript and jQuery animations won't work. I think it's because Meteor loads JS files in a non-linear manner, so it's entirely possible for the JS files to load before the DOM is loaded in its entirety. And this breaks lots of things.
Ok, with Meteor any file named main.* will be loaded after everything else. NOTE that this appears to only mean that main.* *starts* loading after everything else. It doesn't say anything about when files finish loading.
If I put all the script tags into their own main.html and then attach it to index.html as a template, the animations still don't work.
Anyway, anyone else have major issues like this with Meteor? And any best practices or work-arounds?
Take this template:
http://bootstraptaste.com/free-one-page-bootstrap-template-amoeba/
All the important javascript files are referenced at the bottom of index.html. If you try to port this over to a Meteor project, good luck.
Leaving the script tags at the bottom means a ton of the javascript and jQuery animations won't work. I think it's because Meteor loads JS files in a non-linear manner, so it's entirely possible for the JS files to load before the DOM is loaded in its entirety. And this breaks lots of things.
Ok, with Meteor any file named main.* will be loaded after everything else. NOTE that this appears to only mean that main.* *starts* loading after everything else. It doesn't say anything about when files finish loading.
If I put all the script tags into their own main.html and then attach it to index.html as a template, the animations still don't work.
Anyway, anyone else have major issues like this with Meteor? And any best practices or work-arounds?