![]() You can follow this article that shows you how to do that. I'm sorry, I forgot to mention that you'll have to set a handler for events that interact with the screen, resetting the timeout. Hope this was helpful, let me know if it worked :) The idle time can be detected using either vanilla JavaScript or jQuery code. It can be mouse movement, page click or when the user uses the keyboard. Is it possible to detect idle time in JavaScript My primary use case probably would be to pre-fetch or preload content.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |