What is window.__GITBOOK_INITIAL_PROPS__ ? #286
Answered
by
SamyPesse
atelog
asked this question in
0. General bugs and questions
-
When I open view source of a page generated with gitbook I see some weirds characters at the end of the page: Specifically:
What this value is used for? |
Beta Was this translation helpful? Give feedback.
Answered by
SamyPesse
Jul 28, 2023
Replies: 1 comment 1 reply
-
This value is used to pass the data our frontend code requires to run and render the content. The reason why it's displayed as random characters, it's because it's compressed using |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
atelog
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This value is used to pass the data our frontend code requires to run and render the content.
The reason why it's displayed as random characters, it's because it's compressed using
lz-string
.You can, for example copy this string and paste it in a script with lz-string to see what's inside