WordPress.org

Ready to get started?Download WordPress

Forums

Reed Write
[resolved] _rw_script.js.php slows down page loading (3 posts)

  1. fabio84
    Member
    Posted 1 year ago #

    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

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

    http://wordpress.org/extend/plugins/reed-write/

  2. iambriansreed
    Member
    Plugin Author

    Posted 1 year ago #

    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.

    Thanks!

  3. iambriansreed
    Member
    Plugin Author

    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.