urish / angular-load

Dynamically load scripts and css stylesheets in your Angular.JS app
MIT License
243 stars 65 forks source link

Prevent loading of duplicate resources #8

Closed slavafomin closed 9 years ago

slavafomin commented 9 years ago

Hello!

As far as I can see, this service will add any specified resource every time the method is called, even if that resource was already added.

Maybe we should ignore "duplicate" calls and just fire the promise immediately?

urish commented 9 years ago

@slavafomin sounds good. Can you please create a pull-request for this?

slavafomin commented 9 years ago

Thanks ) I will do this if time permits )

urish commented 9 years ago

Thank you!

You can find here some information about the project structure and how to set up your environment.