Giter Club home page Giter Club logo

Comments (9)

willfarrell avatar willfarrell commented on July 26, 2024 2

Once #48 is merged you'll be able to have to declare a fallback function. Using it would look something like below.

$script('someFileNotOnServer.js', function() {
/* someFileNotOnServer.js' Found */
}, function(deps) {
/* someFileNotOnServer.js' Not Found */
})

from script.js.

fridmaster avatar fridmaster commented on July 26, 2024 2

Hi! I using this flow with Angular, but it's not work like it suppose to be.
I rewrited it using $script.ready(function(){},function(){})
but it goes throw second function, no matter file was found or not.
I need to catch error when flow goes in the way that user have no ability to get files.
How could I do it?

from script.js.

Kikketer avatar Kikketer commented on July 26, 2024 1

Any timeline on when this will be merged? I'm in desparate need of this type of logic and would like to stick to $script. Thanks

from script.js.

zenwork avatar zenwork commented on July 26, 2024 1

Hi,
any news on when this functionality will be merged in?

cheers,
florian

from script.js.

ded avatar ded commented on July 26, 2024

not at the moment. the callback will fire regardless of whether it returns 404 or 200

from script.js.

NickHeiner avatar NickHeiner commented on July 26, 2024

👍 This would be very useful to me.

from script.js.

ded avatar ded commented on July 26, 2024

Alright I'll try and sort this out soon

from script.js.

isocroft avatar isocroft commented on July 26, 2024

Cool stuff, error (404) and success (200) callbacks, can't wait for the PR merge

from script.js.

amorey avatar amorey commented on July 26, 2024

If you are only targeting IE9+ see: #84

from script.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.