-
-
Notifications
You must be signed in to change notification settings - Fork 149
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
How to Solve the Problem of Repeated Loading of Scripts #100
Comments
csq2018
changed the title
如何解决脚本重复加载的问题
How to Solve the Problem of Repeated Loading of Scripts
Oct 15, 2019
What is the desired behavior? On the second click do you want to execute the callback without loading the script? |
I have the same issue. multiple visits to a page causes repeated download/adding or same file by LoadJS. |
You can use the if (!loadjs.isDefined('foo')) {
loadjs('/path/to/foo.js', 'foo', function() { /* foo.js loaded */})
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Every time I click to trigger the _confirm page, I insert confirm.js how to solve this situation?
The text was updated successfully, but these errors were encountered: