Initially, the browser is open 2 pages: home home.html and requests.html requests.html page. The task is to have the title pages of requests.html automatically update when surfing on various pages. Title should show the number of pages visited during surfing. This is similar to how the site with the number of new messages is updated on the Vkontakte website.
Tell me how to implement this using the Django + AJAX + jQuery bundle.

    1 answer 1

    You have several options.

    1. Implement it on the frontend using localstorage. An example can be found here and look for the keywords "interaction between the javascript pages localstorage". From the pros - no additional requests to the server
    2. Implement through some api and long pooling, for example (you can have web sockets, but they are not very friendly with junga) and update the title of the page. Of the minuses - a lot of unnecessary requests on each open tab
    • Thank! My mind has already reached the use of localstorage. But thanks for the link to the example anyway! - Alex Strutinskiy