Skip to content

Commit 0734e1f

Browse files
authored
Update best-practices.md
1 parent da23eaf commit 0734e1f

File tree

1 file changed

+2
-3
lines changed
  • content/en/docs/refguide/mobile/building-efficient-mobile-apps/offlinefirst-data

1 file changed

+2
-3
lines changed

content/en/docs/refguide/mobile/building-efficient-mobile-apps/offlinefirst-data/best-practices.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ Attribute paths can not be used in sort orderings in offline apps.
142142

143143
## Enhancing Persistent Mode in File Storage {#persistent-mode}
144144

145-
When using offline profiles, files are stored locally on a user's device in the browser Origin Private File System (OPFS). The OPFS can operate in two modes: **persistent** and **best-effort**. The **persistent** mode is preferable because it offers greater storage capacity and better data durability. While **persistent** mode is used by default, a browser may opt for **best-effort** mode if it assesses the site's importance as low. This assessment is made based on internal browser metrics, which include the following:
145+
When using offline profiles, files are stored locally on a user's device in the browser Origin Private File System (OPFS). The OPFS can operate in two modes: **persistent** and **best-effort**. The **persistent** mode is preferable because it offers greater storage capacity and better data durability. While **persistent** mode is used by default, a browser may opt for **best-effort** mode if it assesses the site's importance as low. This assessment is made based on internal browser heuristics, which include the following:
146146
* The level of site engagement
147147
* Whether the site has been bookmarked
148148
* Whether permission for site notifications has been granted
@@ -151,5 +151,4 @@ To enhance the likelihood of operating the OPFS in 'persistent' mode, consider t
151151
* Bookmark the site
152152
* Enable notifications for the site
153153

154-
Firefox does not utilize heuristics but instead displays a popup requesting permission to use **persistent** mode.
155-
To proceed, simply click **Allow** in the popup.
154+
Firefox does not utilize heuristics but instead displays a popup requesting permission to use **persistent** mode. To proceed, simply click **Allow** in the popup.

0 commit comments

Comments
 (0)