Skip to content

Commit 5cca164

Browse files
committed
add note about rate-limiting of replaceUrl on Safari
fixes elm#61
1 parent d1dd667 commit 5cca164

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Browser/Navigation.elm

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,11 @@ the URL to match without adding a history entry for every single key stroke.
100100
Imagine how annoying it would be to click `back` thirty times and still be on
101101
the same page!
102102
103+
**Note:** Browsers may rate-limit this function by throwing an exception. The
104+
discussion [here](https://bugs.webkit.org/show_bug.cgi?id=156115) suggests
105+
that the limit is 100 calls per 30 second interval in Safari in 2016. It also
106+
suggests techniques for people changing the URL based on scroll position.
107+
103108
-}
104109
replaceUrl : Key -> String -> Cmd msg
105110
replaceUrl =

0 commit comments

Comments
 (0)