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

Add versions to wp_enqueue_script #5

Open
dustyf opened this issue Nov 22, 2013 · 0 comments
Open

Add versions to wp_enqueue_script #5

dustyf opened this issue Nov 22, 2013 · 0 comments

Comments

@dustyf
Copy link
Contributor

dustyf commented Nov 22, 2013

I would recommend adding version numbers to the scripts and styles you are enqueuing. This is important for caching purposes. If you make an update and change the version of Mondernizr, users browsers could have it cached. Adding a version will be sure it uses the new version and not the cached version.

You can use the version number for things like Modernizr or it is commonplace to use the date you are adding this to the theme as the version.

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

1 participant