As a newcomer to Vue.js, I have a question regarding the rendering of a large amount of HTML in a Vue.js template.
When I include around 500 lines of plain HTML code in my template and run
npm run dev
the compiling process becomes extremely slow or doesn't finish at all.
<template>
<div class="m-grid m-grid--hor m-grid--root m-page">
<mobile-menu-partial></mobile-menu-partial>
<header-partial></header-partial>
<div>HTML content goes here</div> <------
<footer-partial></footer-partial>
</div>
</template>
Is there an efficient way to handle this issue? I have searched extensively but couldn't find any resources addressing this specific problem.
This is the HTML snippet causing the compilation to slow down:
<div class="m-grid__item m-grid__item--fluid m-grid m-grid--hor-desktop m-grid--desktop m-body">
<!-- Large block of HTML code -->
Your guidance and assistance on how to optimize this would be greatly appreciated. Thank you.