JSFiddle - React, Tailwind, and code Playground

by evan

HTML

<div id="content"></div>

<br />
<a rel="ajaxlink" href="/gh/gist/response.html/6409144/">one</a> <br />
<a rel="ajaxlink" href="/gh/gist/response.html/6409168/">two</a> <br />

JavaScript

var sidebarUrl = "/sidebar-cache.php";
var reloadWhatever = function () {
    $.ajax({
        method: 'POST',
        url: sidebarUrl
    }).done(function (result) {
        $('#sidebar-or-whatever').html(result);
    });
};

setTimeout(reloadWhatever, 5 * 60 * 1000);