Skip to content
This repository was archived by the owner on Apr 23, 2021. It is now read-only.
This repository was archived by the owner on Apr 23, 2021. It is now read-only.

Implementar lazy loading para optimizar los tiempos de carga #10

@CalaoJuanPablo

Description

@CalaoJuanPablo

Hey! Ando revisando el PR y creo que sería bueno usar Lazy Loading para optimizar los tiempos de carga.

Así, la definición de rutas quedaría así:

routes = [
  {
      path: '/',
      name: 'home',
      component: () => import(/* webpackChunkName: "home" */ './views/Home.vue')
  }
]

También es aplicable a la importación de componentes.

Adjunto documentación: https://router.vuejs.org/guide/advanced/lazy-loading.html

Originally posted by @krthr in #9 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions