Title: dependency for edit-post without gutenberg
Last modified: February 24, 2025

---

# dependency for edit-post without gutenberg

 *  [sissi](https://wordpress.org/support/users/ebiebzh0/)
 * (@ebiebzh0)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/dependency-for-edit-post-without-gutenberg/)
 * I am using WP mainly without Gutenberg and came across the issue that when editing
   a post cache-warmer is loading the post.js with the dependency wp-edit-post wich
   is dispatching the core/editor. We are creating our sites with ACF which has 
   a check on the edit screen if gutenberg is enabled – checking this with:
 * `window.wp&&wp.data&&wp.data.select&&wp.data.select("core/edit-post"))`
 * and wp.data.select(“core/edit-post”) returns then an object when cache-warmer
   plugin is active, because the wp-edit-post dependency is set in the post.asset.
   php file which is included class-assets-post-screen.php
 * I suppose this is needed when using Gutenberg to have some display options on
   the edit-post page.
 * My question now, could you check if Gutenberg is even used in the admin area 
   and then only use the dependency when needed? This would prevent a lot of JS 
   logic happening on the admin area on my sites and probably for other users that
   are not using Gutenberg at all.
 * If there would be a hook/filter or anything else to disable this in the plugin,
   also fine. Not sure on how to handle that easily on your site, since I do not
   know what is actually happening on the edit post with Gutenberg active.
 * Thank you,
 * Sissi

The topic ‘dependency for edit-post without gutenberg’ is closed to new replies.

 * ![](https://ps.w.org/cache-warmer/assets/icon.svg?rev=2869611)
 * [Cache Warmer](https://wordpress.org/plugins/cache-warmer/)
 * [Support Threads](https://wordpress.org/support/plugin/cache-warmer/)
 * [Active Topics](https://wordpress.org/support/plugin/cache-warmer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cache-warmer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cache-warmer/reviews/)

## Tags

 * [ACF](https://wordpress.org/support/topic-tag/acf/)
 * [dependency](https://wordpress.org/support/topic-tag/dependency/)
 * [gutenberg](https://wordpress.org/support/topic-tag/gutenberg/)

 * 0 replies
 * 1 participant
 * Last reply from: [sissi](https://wordpress.org/support/users/ebiebzh0/)
 * Last activity: [1 year, 2 months ago](https://wordpress.org/support/topic/dependency-for-edit-post-without-gutenberg/)
 * Status: not resolved