I just read how to check that users leave the page earlier, when suddenly I thought about doing AJAX, when the user leaves the page to send analytical data back to the server.
Does the AJAX event do onunloadgood or bad practice / implementation?
onunload
Making AJAX calls while unloading doesn't work very well in all situations. Typically, the web browser closes the panel almost immediately, and the AJAX call may be lost.
, advance . , 5 , 10 , 20 .. , . , , , : -)
- , , ajax - , , , .
, , onunload, , .
,
, , AJAX, , ( )
, , ! , , : P
.
Source: https://habr.com/ru/post/1723767/More articles:How to create a translucent image using imagemagick - imagemagickManaging large applications with CakePHP - phpshow image in gtkmm from integer array - c ++Visual Studio: Сделать код просмотра по умолчанию с помощью атрибута - c#PHP login / logout question - phpUISearchBar in UITableView - uitableviewJava collection filtering - javaМожно ли запускать циклы в функциональных методах тестирования? - rubyMeasuring network time on a website - phpAnalysis of user input according to search criteria - javaAll Articles