Menu

Post image 1
Post image 2
1 / 2
0

Using browser.storage.sync vs storage.local in Firefox Extensions: When to Use Each

DEV Community·Weather Clock Dash·29 days ago
#u7f8H5zS
Reading 0:00
15s threshold

Using browser.storage.sync vs storage.local in Firefox Extensions: When to Use Each Firefox extensions have two main storage options: browser.storage.sync and browser.storage.local . Picking the wrong one leads to frustrating UX. Here's how to think about it. The Core Difference storage.sync storage.local Synced across devices Yes (via Firefox Sync) No Quota 100KB (8KB per item) 10MB Requires Firefox Sync Yes, to actually sync No Falls back gracefully Yes (local if not synced) N/A storage.sync: User Preferences Use sync for anything that should feel the same across all the user's Firefox installations: // Settings that should follow the user await browser . storage . sync .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More