Support » Plugin: WP Gallery Custom Links » Front End Scripts

  • Resolved Mark Wilkinson

    (@wpmarkuk)


    Thanks for this plugin – finding it really useful.

    I have noticed that wp-gallery-custom-links.js is being enqueued using the wp_enqueue_script action. It would appear that this file is only needed in the admin area for the gallery user interface as if I disable JS on the front end the gallery custom inks still work.

    Therefore would it not make more sense to load this script using the admin_enqueue_scripts action hook instead and therefore reduce the HTTP calls of the front-end for what seems like a not needed script.

    Obviously please correct me if I am wrong and thanks for taking the time.

    https://wordpress.org/plugins/wp-gallery-custom-links/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Front End Scripts’ is closed to new replies.