[openstreetmap/openstreetmap-website] Introduce "reload" js controller method (PR #3774)
Anton Khorev
notifications at github.com
Mon Oct 31 13:30:41 UTC 2022
@AntonKhorev commented on this pull request.
> router.stateChange(loadState || {});
+
+ function loadOrReload() {
+ if (currentRoute.has("reload") && window.performance) {
+ var wasReloaded = window.performance.getEntriesByType("navigation").some(function (entry) {
+ return entry.type === "reload";
+ });
I think it's for the current page only, not for the history.
https://developer.mozilla.org/en-US/docs/Web/API/Performance : "The Performance interface provides access to performance-related information for the current page".
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/3774#discussion_r1009421281
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/3774/review/1161882053 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20221031/11c39da6/attachment.htm>
More information about the rails-dev
mailing list