I am using fabric.js for an interactive canvas feature and would like to only load fabric.js for a particular route. I am using Iron Router and am currently loading the library in the route with:
However, I’d like to pull in the library from the server for only this route so that I don’t have to depend on having internet access. Basically, I’d like to have fabric as a js file in my app and then only load it when I hit a specific route (and not use a CDN). Is there a way to do this?