Support » Plugin: Spectacu.la Discussion » [Plugin: Spectacu.la Discussion] How can I reduce update time?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author interconnectit

    (@interconnectit)

    Hi,

    There are checks in the JS too. Look for

    parseInt( commentingL10n.polling, 10 ) >= 10 ? commentingL10n.polling * 1000 : 10000 )

    If you do change the js you’ll need to re-minify it or at very least copy the file over to commenting.min.js

    You’ll also want to change the validate_options method in options-page.php around the $output[ 'polling' ] = intval part, although just changing the default will do it’s not quite complete.

    Ok thanks .
    For minify the javascript what tool is used in wordpress?

    Plugin Author interconnectit

    (@interconnectit)

    I use YUI Compressor to minify my JS. There may be better out there but that’s the one I’ve been using for a while and it’s served me well.
    You don’t need to actually run a minify on the js file you just need to be sure that any changes you make to commenting.js are copied over to commenting.min.js even if that just involves deleting .min.js and renaming the other to commenting.min.js. Alternatively you could just change the line in commenting.php that points to the min.js file to point to the .js file instead.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Spectacu.la Discussion] How can I reduce update time?’ is closed to new replies.