59
55

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

主要モバイルブラウザ遷移時のイベントの種類と挙動

Last updated at Posted at 2013-10-18

またまたいつも忘れるので。

いずれも現在の最新ブラウザで確認。
mobile safariは昔から挙動が変わってない。
また、上から発火する順番が早い。

  Android2.x Android4.x Chrome for Android mobile safari Chrome for iOS
beforeunload ×
pagehide
unload ×

※mobile safariは、キャッシュが保たれている場合はunloadが呼ばれない。リロードしたときにキャッシュが消えると呼ばれる。
※pagehideは、タブ切り替えやブラウザを閉じるなど不意に呼ばれるので注意。

59
55
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
59
55

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?