Skip to content

Conversation

@DaveBurns
Copy link
Contributor

This proposed change loads the floating bar JavaScript using wp_enqueue_scripts(). This has two benefits:

  1. It keeps the JavaScript from embedding in the HTML body (messy)
  2. It improves compatibility with WordPress minifiers (such as BWP_Minify) that use the list of scripts passed to that function.

With this change, my digg-digg JavaScript can now be automatically minified and concatenated with the rest of my JS to help speed up my site load times.

…dding in the HTML (messy) and improves compatibility with WordPress minifiers that use the list of scripts passed to that function.
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

Successfully merging this pull request may close these issues.

1 participant