You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ So, usually, for a bot or for a human, the website its almost visually the same
34
34
35
35
These library was born to remove the scripts injected in the HTML only if a visitor is a **Bot** or a "**Chrome Lighthouse**". This should **speed up** (**blazing fast**) your *nuxt-website* up to a value of **~95** in **performance** during an *Audit* because it [cheats various scenarios](https://web.dev/lighthouse-performance/).
36
36
37
-
> Obviously this could cause some unexpected behaviors.
37
+
> This could cause some unexpected behaviors.
38
38
39
39
### Pro et contra
40
40
@@ -43,15 +43,15 @@ These library was born to remove the scripts injected in the HTML only if a visi
43
43
**Cons:**
44
44
45
45
- no SPA navigation;
46
-
- no lazy-load for images (available only if [native](https://web.dev/native-lazy-loading/), or with a custom `script` / `selectorToKeep`, check the _configuration_);
46
+
- no `lazy-load` for images (available only if [native](https://web.dev/native-lazy-loading/), or with a custom `script` / `selectorToKeep`, check the _configuration_);
47
47
- no `<client-only>`[html](https://nuxtjs.org/api/components-client-only/).
48
48
49
49
**Pro:**
50
50
51
51
- some of these features aren't "used by" a Bot or a Lighthouse Audit, so you don't really need them (ex. Bots doesn't need `SPA navigation`, `client-only` tags could lead in a slower TTI);
52
-
- you can "restore" lazy-load with a custom `script`, only for Bots;
52
+
-`lazy-load`can be restored with a custom `script` / `selectorToKeep`, only for matched Bots;
53
53
- less HTML;
54
-
-BOTS only have the Javascript they need;
54
+
-Bots only have the Javascript they need;
55
55
- is not considered [black-hat](https://www.wordstream.com/black-hat-seo) or [cloaking](https://en.wikipedia.org/wiki/Cloaking);
56
56
-[PageSpeed Insights](https://developers.google.com/speed/pagespeed/insights/), [Measure](https://web.dev/measure/) and [Lighthouse Audit in Chrome](https://developers.google.com/web/tools/lighthouse) are already triggered by the plugin without the needing of change any value;
0 commit comments