Skip to main content

Offline Mode

The Reader supports offline reading for cached content. The Reader automatically detects network connectivity and adjusts the interface. Features requiring server communication are disabled when offline. Core reading functionality remains available for cached content. A Network Status Indicator appears in the Footer when offline.


Offline Detection

The Reader monitors network connectivity through the isOffline state variable. When offline:

A Network Status Indicator appears in the Footer displaying a message indicating the network is unavailable.

Features requiring internet are automatically disabled (grayed out or hidden).

The Reader continues to function with available offline capabilities.


Feature Availability by Network Status

Core Reading Features

FeatureOnlineOfflineNotes
Document ViewingContent must be cached
Page Navigation
Page Layout Changes
Theme Selection
Zoom Controls
Table of Contents
Thumbnails (PDF)
Reading Progress

Features Requiring Internet

FeatureOnlineOfflineReason
SearchRequires server-side text search
NotebookSyncs annotations with server
Highlights (new)Requires sync to save
Notes (new)Requires sync to save
Vito AIAI processing on server
Listen (TTS)Uses cloud TTS services
DictionaryFetches definitions from server
TranslationUses translation API
Smart ZoomRequires article data from server
Social SharingRequires internet to share

Disabled Feature Behavior

When a feature is unavailable due to offline status:

Visual State: The button appears grayed out or with reduced opacity

Interaction: Clicking/tapping the button has no effect

Tooltip: May display a message indicating internet is required


Network Status Indicator

When offline, a notification bar appears in the Footer:

Location: Top of the Footer component

Appearance: Styled to match the current theme

Animation: Fades in when offline, fades out when connection is restored


Content Caching

For offline reading to work, content must be available locally:

PDF Documents

PDF pages are loaded as images from publication.files_urls.

Once loaded, pages may be cached by the browser.

Thumbnails use the same image sources and cache similarly.

EPUB Documents

EPUB content is loaded through the EPUB spine.

Chapters that have been viewed may be cached.

Navigation within cached chapters works offline.

Audiobooks

Audio files must be downloaded/cached for offline playback.

The Playlist panel works offline.

Playback controls function offline with cached audio.


Feature Availability by Content Type (Offline)

FeaturePDFEPUBAudiobook
Content Viewing✅*
Navigation
Table of ContentsN/A
ThumbnailsN/AN/A
PlaylistN/AN/A
Theme
Zoom/FontN/A
Page LayoutN/A
SearchN/A
NotebookN/A
Vito AIN/A
Listen (TTS)N/A
info

Audiobook playback requires cached/downloaded audio files

X

Graph View