Skip to content

Instantly share code, notes, and snippets.

@gbishop
gbishop / remoteCommand.js
Created February 9, 2012 00:31
A web-testing hack to allow me to force refresh in several browsers simultaneously.
$(function(){
/* poll for commands to run. I mostly use it with window.location.reload(true); */
function remoteCommand() {
$.ajax({
url: "/wp-content/themes/thr3/remoteCommand.php",
cache: false,
timeout: 100000,
success: function(data) {
if (data != 'no') {