Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

waterfall() is not a function #3

Open
warmjaijai opened this issue Dec 16, 2016 · 2 comments
Open

waterfall() is not a function #3

warmjaijai opened this issue Dec 16, 2016 · 2 comments

Comments

@warmjaijai
Copy link

Following exactly the same with the instruction but console log
waterfall() is not a function

Not sure where the problem is.

@mystist
Copy link
Owner

mystist commented Dec 19, 2016

What's about console.log($.fn.waterfall)?
Make sure the code runs after the source file successfully loaded.

Also, definitely fork the repo and run it on your local, you'll see how it works.

@andrei-gheorghiu
Copy link

It means bootstrap-waterfall.js has not yet been loaded when you're calling .waterfall() in your page.

This is (most likely) due to linking the script directly from github: https://raw.githubusercontent.com/Mystist/bootstrap-waterfall/master/dist/bootstrap-waterfall.js
or https://rawgithub.com/Mystist/bootstrap-waterfall/master/dist/bootstrap-waterfall.js

Github should not be used as cdn. Specifically, they do not add the cors header to allow loading from all.
To fix, just download the script in your project and include from there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants