Title: [Plugin: Reed Write] _rw_script.js.php slows down page loading
Last modified: August 20, 2016

---

# [Plugin: Reed Write] _rw_script.js.php slows down page loading

 *  Resolved [fabio84](https://wordpress.org/support/users/fabio84/)
 * (@fabio84)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-reed-write-_rw_scriptjsphp-slows-down-page-loading/)
 * Hi, I think reed-write is an useful plugin that helps non-developers defining
   content types, and at work we used it for many sites.
 * However I found out that it includes _rw_script.js.php as a javascript on every
   page. This php script regenerates a javascript every time, recalling every time
   wp-load.php, significantly increasing pages loading time.
 * Is this file really necessary? Is there a way to disable the loading of this 
   file? If this file is necessary, shouldn’t you embed the script content in the
   head, or generate this only when it changes and cache it as a static file, instead
   of use this way that makes WordPress load twice at every page viewed?
 * On a site I tried to use the plugin W3 Total Cache, but apparently _rw_script.
   js.php is not cached, so even if I load quickly a static cached copy of a page,
   _rw_script.js.php is reloaded anyway in any page, slowing down the load time 
   and nullifying the work of W3 Total Cache.
 * Apparently this scripts allows to make AJAX requests to _rw_query.php, to make“
   wp_queries”. I think this functionality is not used by many reed-write users,
   and some may even be unaware. Moreover, AJAX requests should be handled through
   wp-admin/admin-ajax.php and hooks ‘wp_ajax_ACTION_NAME’ and ‘wp_ajax_nopriv_ACTION_NAME’
   as explained on [http://codex.wordpress.org/AJAX_in_Plugins](http://codex.wordpress.org/AJAX_in_Plugins)
 * Shouldn’t you make all this optional, or even split this feature into another
   plugin?
 * [http://wordpress.org/extend/plugins/reed-write/](http://wordpress.org/extend/plugins/reed-write/)

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

 *  Plugin Author [Brian S. Reed](https://wordpress.org/support/users/iambriansreed/)
 * (@iambriansreed)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-reed-write-_rw_scriptjsphp-slows-down-page-loading/#post-3113014)
 * I can add this to an options page; this makes total sense.
    Look for this in 
   the next release.
 * Can you think of other options that might exist on this page?
 * Since you are using the plugin for commercial use please consider making a [contribution](http://reedwrite.scottreeddesign.com/).
 * Thanks!
 *  Plugin Author [Brian S. Reed](https://wordpress.org/support/users/iambriansreed/)
 * (@iambriansreed)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/plugin-reed-write-_rw_scriptjsphp-slows-down-page-loading/#post-3113288)
 * Sorry this took so long.
 * Added a settings page which eventually will have more than just the option to
   turn this script on or off.
 * Thanks for the feedback and please rate.

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

The topic ‘[Plugin: Reed Write] _rw_script.js.php slows down page loading’ is closed
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/reed-write.svg)
 * [Reed Write](https://wordpress.org/plugins/reed-write/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/reed-write/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/reed-write/)
 * [Active Topics](https://wordpress.org/support/plugin/reed-write/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/reed-write/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/reed-write/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Brian S. Reed](https://wordpress.org/support/users/iambriansreed/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/plugin-reed-write-_rw_scriptjsphp-slows-down-page-loading/#post-3113288)
 * Status: resolved