what would be the best way to incorporate this into the builtin
link_to_remote() method?
document.getElementById(‘main’).innerHTML = ‘’;
Id like for the item above to take place while the page is loading.
I’m currently doing this with another javascript but would prefer to
use rails. Unfortunately, rails just sits there until the page loads.