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

  • Resolved fabio84


    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

    Shouldn’t you make all this optional, or even split this feature into another plugin?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Brian S. Reed


    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.


    Plugin Author Brian S. Reed


    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.