Title: wp_enqueue_script
Last modified: August 31, 2016

---

# wp_enqueue_script

 *  Resolved [Mephisto999](https://wordpress.org/support/users/mephisto999/)
 * (@mephisto999)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/wp_enqueue_script-5/)
 * Hi,
 * I am very happy to use Embed Chessboard with WordPress. As far as I can see there
   is no real alternative among the available plugins.
 * However, there is one problem. The .js files of the plugin can’t be treated by
   optimization plugins and cause therefore blocking resources that have a huge 
   impact on the pageload time if you use several boards in one post. I am far from
   being an expert in these things. As far as I understand it, the wp_enqueue_script
   is missing. You will know what I am trying to express as a technical dilettante.
   🙂
 * My question. Is there a chance to change this somehow in order to improve the
   performance of the posts where the plugin is used?
 * Kind Regards
 * [https://wordpress.org/plugins/embed-chessboard/](https://wordpress.org/plugins/embed-chessboard/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [pgn4web](https://wordpress.org/support/users/pgn4web/)
 * (@pgn4web)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/wp_enqueue_script-5/#post-7248537)
 * I’m not a wordpress.org expert either, but it seems to me that wp_enqueue_script
   applies to script loaded by the wordpress page, while the pgn4web scripts are
   loaded into an iframe added to the page, hence outside the scope of wp_enqueue_script.
 * I might be wrong though, I’m open to more specific suggestion and actual code
   patches to improve the plugin.
 *  Thread Starter [Mephisto999](https://wordpress.org/support/users/mephisto999/)
 * (@mephisto999)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/wp_enqueue_script-5/#post-7248541)
 * Hi,
    Thanks for your fast reply. If it loads with an iframe, it’s just like the
   youtube videos, it’s external. However, I send you the link with a test on the
   GTmetrix site where you can see the problems with the .js and the image dimensions.
   Unlike the youtube videos the files of the player load from the local server 
   or the cdn. Maybe there is a chance for improvement: [https://gtmetrix.com/reports/yifanhou.net/wYZ19R7P](https://gtmetrix.com/reports/yifanhou.net/wYZ19R7P)
   However, many thanks for your work. I like the simplicity of the design and the
   clean functionality very much. I have found no other plugin that is able to simply
   display a local pgn file in a wordpress post. Kind Regards
 *  Plugin Author [pgn4web](https://wordpress.org/support/users/pgn4web/)
 * (@pgn4web)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/wp_enqueue_script-5/#post-7248545)
 * Sorry but I find those “optimization” tools a waste of time.
 * I’m open to review any specific suggestion and code patch. I’m also open to address
   any real issue with the plugin; not scoring 100% in a random validation/optimization
   test is not a big deal.
 *  Thread Starter [Mephisto999](https://wordpress.org/support/users/mephisto999/)
 * (@mephisto999)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/wp_enqueue_script-5/#post-7248556)
 * “A waste of time” is very much to the point. That’s exactly what the plugin files
   cause for the visitors of a website. But it’s your decision, if you don’t care
   about these things, we simply have to accept that. However, thank you once again
   for your for work.
 *  Plugin Author [pgn4web](https://wordpress.org/support/users/pgn4web/)
 * (@pgn4web)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/wp_enqueue_script-5/#post-7248557)
 * Any suggestion welcome.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘wp_enqueue_script’ is closed to new replies.

 * ![](https://ps.w.org/embed-chessboard/assets/icon-256x256.png?rev=973087)
 * [Embed Chessboard](https://wordpress.org/plugins/embed-chessboard/)
 * [Support Threads](https://wordpress.org/support/plugin/embed-chessboard/)
 * [Active Topics](https://wordpress.org/support/plugin/embed-chessboard/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/embed-chessboard/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/embed-chessboard/reviews/)

## Tags

 * [wp_enqueue_script](https://wordpress.org/support/topic-tag/wp_enqueue_script/)

 * 5 replies
 * 2 participants
 * Last reply from: [pgn4web](https://wordpress.org/support/users/pgn4web/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/wp_enqueue_script-5/#post-7248557)
 * Status: resolved