Search code examples
macossafaribrowser-history

is safari putting in history only pages tha are complete loaded?


am facing a very wired issue, in mac safari i've noticed if you click link on a page that is not complete loaded, lets say that the page we are on is A and the link we are clicking will drive us to page B, so we click it and now we are in page B.

remember we clicked the link before the page A is complete loaded.

from this point if click browser back button you would expect to return to page A, right, but instead you go to browsers start page with the favorites.

am asking just to confirm that this is the expected behavior, that if a page is not complete loaded it wont get in the safari's history list?!


Solution

  • The history is a Javascript's object for:

     manipulating the browser session history, (pages "visited" in the tab or frame that the current page is loaded in).
    

    It's on document https://developer.mozilla.org/en-US/docs/Web/API/Window/history. it's mean that the browser will store the url that is loaded completely.

    I think.