Title: Fix the enqueue function
Last modified: November 7, 2019

---

# Fix the enqueue function

 *  Resolved [ptomislav](https://wordpress.org/support/users/ptomislav/)
 * (@ptomislav)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/fix-the-enqueue-function/)
 * Installing the plugin loads ~40 scripts from wp-includes on every page load, 
   due to the dependencies in `gs_pin_gutenberg_boilerplate_block()` function.
 * The issue is in the hook
    `add_action( 'enqueue_block_assets', 'gs_pin_gutenberg_boilerplate_block');`
 * Please change to
    `add_action( 'enqueue_block_editor_assets', 'gs_pin_gutenberg_boilerplate_block');`
   so it’s loaded only in the Gutenberg Editor.

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [GS Plugins](https://wordpress.org/support/users/gsplugins/)
 * (@gsplugins)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/fix-the-enqueue-function/#post-12166403)
 * Hi [@ptomislav](https://wordpress.org/support/users/ptomislav/)
 * Thanks for the concern.
    Lately released new version (1.2.2) with your recommendation.
 * Please check & let us know if you find any other issue/s.
 * Keep in touch.
 * Thanks a ton again 🙂

Viewing 1 replies (of 1 total)

The topic ‘Fix the enqueue function’ is closed to new replies.

 * ![](https://ps.w.org/gs-pinterest-portfolio/assets/icon-128x128.png?rev=3019619)
 * [GS Pinterest Portfolio – Pins Grid, Masonry, User Profile, Popup & Board Widgets](https://wordpress.org/plugins/gs-pinterest-portfolio/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gs-pinterest-portfolio/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gs-pinterest-portfolio/)
 * [Active Topics](https://wordpress.org/support/plugin/gs-pinterest-portfolio/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gs-pinterest-portfolio/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gs-pinterest-portfolio/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [GS Plugins](https://wordpress.org/support/users/gsplugins/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/fix-the-enqueue-function/#post-12166403)
 * Status: resolved