Skip to content

search is present on live server but disappeared in offline build #6605

Answered by squidfunk
jablka asked this question in Q&A
Discussion options

You must be logged in to vote

Ah I see. Yes, the problem is that the font cannot be loaded (since it's referenced from Google), and the iframe-worker shim from unpkg.com, which you'll see if you open the browser console. To solve it, just add the privacy plugin, which will allow full offline capability. This is also explained here:

site_name: My Docs
theme:
  name: material
plugins:
  - search
  - offline
  - privacy

The logic of downloading and inlining external assets, and preparing the site for offline use is split among the offline and privacy plugin, since we would otherwise end up with duplicated functionality. We'll evaluate in the future how we can make this easier to configure.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@jablka
Comment options

Comment options

You must be logged in to vote
4 replies
@squidfunk
Comment options

@docopshabr
Comment options

@squidfunk
Comment options

Answer selected by squidfunk
@docopshabr
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants