Tag : jQuery code safe

3 super simple ways to keep your jQuery code safe

If you are developing code for free distribution or developing plugins for sale, it’s always important to consider for any possible name/id conflict. What would happen if some script, imported after yours, also had a $ function like jQuery? Most common answer is to either call jQuery’s noConflict(), or to store your code within a self-invoking anonymous function, and then [...]