Questions tagged [curl.js]

A small, fast module and resource loader with dependency management.

7 questions
2
votes
2 answers

how do I determine if a JS file is AMD-compatible?

I'm using curl or require (evaluating both) to load js files asynchronously. I'm using 5 js files in my prototyping app: jquery.min.js // off of CDN Bacon.js // reactive programming tool curl.js // js loader index.coffee // page…
jcollum
  • 43,623
  • 55
  • 191
  • 321
1
vote
0 answers

How to integrate curl.js with server-side jinja2 templating

I have a Python-based Flask web application that uses Jinja2 to perform templating on the server-side. I would like to improve my Javascript and CSS loading by using curl.js to load JS and CSS asynchronously. Is there a specific, well-defined method…
OOPMan
  • 510
  • 4
  • 8
1
vote
1 answer

How do I make curl.js resolve circular dependencies?

I've got two AMD modules which should reference each other, but as soon as I add backward dependency, it stops working. I suppose it got stuck in waiting state. index.html:
x-yuri
  • 16,722
  • 15
  • 114
  • 161
1
vote
1 answer

Is there any way to detect 404 erros in AMD loaders?

I'm working on a framework-like structure that uses curl.js as script loader. Modules can be located in either the App or Core directory, which allows me to override Core modules easily from the app. I had a server-side script to search these…
jpeltoniemi
  • 5,320
  • 7
  • 24
  • 34
1
vote
0 answers

Ember.js: "autoinit: false" is not working anymore

I'm loading my whole application in parts, so somewhere at the beginning during this init process I create my app window.Sp = Em.Application.create( { VERSION: '1.0.0', autoinit: false }) ; Then I start loading other things, like router…
Jeanluca Scaljeri
  • 26,343
  • 56
  • 205
  • 333
0
votes
3 answers

how should I write my define to work with curl.js?

I'm reading Addy Osmani's excellent blog post about writing AMD modules. I start with a simple chunk of js that I lifted from his post: define('modTest', [], // module definition function function () { // return a value that defines the…
jcollum
  • 43,623
  • 55
  • 191
  • 321
0
votes
3 answers

how do I use curl.js to load an object?

Curl 0.7.3 I got some AMD/CommonJS adapter code from here: supporting both CommonJS and AMD (function (name, definition) { if (typeof module != 'undefined') { module.exports = definition(); } else if (typeof define ==…
jcollum
  • 43,623
  • 55
  • 191
  • 321