mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-23 04:34:15 -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: [
|
||||
{
|
||||
type: 'speculationrules',
|
||||
innerHTML: `
|
||||
{
|
||||
"prerender": [
|
||||
{
|
||||
"where": {
|
||||
"and": [
|
||||
{ "href_matches": "/*" },
|
||||
{ "not": { "selector_matches": ".no-prerender" } },
|
||||
{ "not": { "selector_matches": "[rel~=nofollow]" } }
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"eagerness": "moderate"
|
||||
}`,
|
||||
innerHTML: JSON.stringify({
|
||||
prerender: [
|
||||
{
|
||||
where: {
|
||||
and: [
|
||||
{ href_matches: "/*" },
|
||||
{ not: { selector_matches: ".no-prerender" } },
|
||||
{ not: { selector_matches: "[rel~=nofollow]" } }
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
eagerness: "moderate",
|
||||
}),
|
||||
},
|
||||
],
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user