Kerry
Kerry

Reputation: 45

Is writing $ = jQuery a better idea in WP?

I write multiple Jquery in WP, but they use the non-conflict version i.e. jQuery. So is it a better idea that in top of my app, i write

var $ = jQuery;

Then use functions with $ symbol It works fine for me, but isn't that bad?

Upvotes: 0

Views: 21

Answers (1)

justyy
justyy

Reputation: 6041

Maybe. Less is more. all depending on the coding style.

Upvotes: 1

Related Questions