User blog:Tariq Jabbar/Auto-refresh for Recent Activity

On Plants Vs. Zombies Wiki, their recent activity automatically refreshes when something new happens. I was wondering if we could get this feature :1

Here is the code (I'm not sure where it goes):

This will be really useful especially for vandalism, because users won't have to refresh the page a lot to see if they edited again.