Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add speculation rules #958

Closed
wants to merge 2 commits into from
Closed

Conversation

ifoxzzy
Copy link

@ifoxzzy ifoxzzy commented May 21, 2024

Descripción

Se añade reglas de especulación para una navegación interna instantánea

Cambios propuestos

Prerender a todos los links en modo moderado ( al hacer hover por +0.2s )

<script type="speculationrules">
	{
			"prerender": [{
		"where": {
				"href_matches": "/*"
		},
		"eagerness": "moderate"
			}]
	}
</script>

Comprobación de cambios

  • He revisado que no haya ninguna PR (pull request) ya abierta con un problema similar, siguiendo el apartado de buenas prácticas
  • He revisado localmente los cambios para asegurarme de que no haya errores ni problemas.
  • He probado estos cambios en múltiples dispositivos y navegadores para asegurarme de que la landing page se vea y funcione correctamente.
  • He actualizado la documentación, si corresponde.

Enlaces útiles

Documentación Chrome for Developers Prerender pages in Chrome

Copy link

vercel bot commented May 21, 2024

@Izzysaac is attempting to deploy a commit to the midudev pro Team on Vercel.

A member of the Team first needs to authorize it.

@JLex11
Copy link
Contributor

JLex11 commented May 21, 2024

Astro ya lo esta implementando de manera experimental https://docs.astro.build/en/reference/configuration-reference/#experimentalclientprerender quizas pueda implementarse mejor asi.

@midudev midudev closed this Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants