davidd8 / meteor-external-file-loader Goto Github PK
View Code? Open in Web Editor NEWThe external file loader package makes it easy to load external js and css files dynamically within Meteor.
License: MIT License
The external file loader package makes it easy to load external js and css files dynamically within Meteor.
License: MIT License
I tried running this on the server-side, but I got the error "TypeError: Cannot call method 'loadJs' of undefined".
I've used this library to include Reveal.JS because it corrupts my css if I use the Meteor package, however what i'm finding now is that when I leave the Reveal.js template where I've used EFL, the files are still included. Is there a way to explicitly remove them?
I'm unable to download the asynchronous Google Adsense code using this package, and I believe it's because the server forces a browser to download the script, not display the script. So this fails:
Meteor.Loader.loadJs("//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js", success).fail(fail);
And gives the error: "Timeout error: The script was not found or took too long to load."
When I replace the adsense url with the stripe url given in the README, it works fine.
I believe the problem is how the script is being served. Enter the adsense url in your browser (http://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js) and you will be forced to download the script. Enter the stripe url in your browser (http://js.stripe.com/v2/) and it will display in your browser.
On the server, I believe this is done with a small .htaccess change. Anyway, it seems to be causing this package to fail!
Landed here from this SO question. Looks like a useful package. A Blaze update would be nice.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.