mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-24 05:05:20 -04:00
speculationrules – js object instead of json
This commit is contained in:
parent
82e9bb0087
commit
54eb35f45c
@ -3,21 +3,20 @@ export default defineNuxtPlugin(() => {
|
|||||||
script: [
|
script: [
|
||||||
{
|
{
|
||||||
type: 'speculationrules',
|
type: 'speculationrules',
|
||||||
innerHTML: `
|
innerHTML: JSON.stringify({
|
||||||
|
prerender: [
|
||||||
{
|
{
|
||||||
"prerender": [
|
where: {
|
||||||
{
|
and: [
|
||||||
"where": {
|
{ href_matches: "/*" },
|
||||||
"and": [
|
{ not: { selector_matches: ".no-prerender" } },
|
||||||
{ "href_matches": "/*" },
|
{ not: { selector_matches: "[rel~=nofollow]" } }
|
||||||
{ "not": { "selector_matches": ".no-prerender" } },
|
|
||||||
{ "not": { "selector_matches": "[rel~=nofollow]" } }
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"eagerness": "moderate"
|
eagerness: "moderate",
|
||||||
}`,
|
}),
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user