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

Detect jQuery + plugins #33

Open
aliaspooryorik opened this issue May 20, 2011 · 1 comment
Open

Detect jQuery + plugins #33

aliaspooryorik opened this issue May 20, 2011 · 1 comment
Labels

Comments

@aliaspooryorik
Copy link
Contributor

Detect if jQuery or the jQuery validation plugin exists. Only load if they don't exist. Something like:

if (typeof jQuery=="undefined"){
document.write("<script....>");
}
if (typeof jQuery.plugins.validate=="undefined"){
document.write("<script....>");
}

@aliaspooryorik
Copy link
Contributor Author

This is a "nice to have" feature which is largely obsolete if the end developer uses the JSIncludes = false setting, so not important. I've not found a method of doing this which is 100% reliable.

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

No branches or pull requests

1 participant