Skip to content

Commit 60b5afa

Browse files
committed
Clarify utility of removeScriptsTag and update limit from 256KB to 1MB
1 parent 26c7a90 commit 60b5afa

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

handler.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,12 @@ const resetPrerenderCloud = () => {
4646
// generally not recommended due to potential google SEO cloaking penalties no one fully understands
4747
// prerendercloud.set("botsOnly", true);
4848

49-
// 6. removeScriptsTag
50-
// Removes all scripts/JS, useful if you trying to get under 256kb Lambda@Edge limit
51-
// but this also means you're app will no longer be a "single-page app" since
52-
// all of the JavaScript will be gone (so we don't recommend this)
49+
// 6. removeScriptsTag (not recommended)
50+
// Removes all scripts/JS, useful if:
51+
// - trying to get under 1MB Lambda@Edge limit
52+
// - having problems with your JS app taking over from the pre-rendered content
53+
// Huge caveat: this also means your app will no longer be a "single-page app" since
54+
// all of the JavaScript will be gone
5355
// prerendercloud.set("removeScriptTags", true);
5456

5557
// 7. see all configuration options here: https://github.com/sanfrancesco/prerendercloud-nodejs

0 commit comments

Comments
 (0)