SlexAxton/yepnope.js — Issue #91: "complete" callbacks are only called once after loading same script twice
Author: kilrogg
Created: 2012-02-17 12:19:21+00:00
State: open

Hi.

I am using yepnope to load tipsy jQuery plugin on my page.

I'm loading tipsy from several different places in my code via the following function:

```javascript
function activate_tipsy(callback){
yepnope({
test: jQuery().tipsy,
nope: [
'/static/css/jquery.tipsy.css',
'/static/scripts/jquery.tipsy.js'
],
complete: callback
});
}
```
The parameter "callback" of my function contains the code to bind tipsy to my specific UI elements.

Now when this is called 3 times in my page, only the first "complete"-callback is called by yepnope because the css and js files are only loaded the first time.

Is this a bug or the intended behavior ?