shortest onload event without jquery
demo of detecting idle user using pure js
demo of detecting idle user using pure js