paint-brush
Optimizing your Vue App Using v-once and v-memoby@smpnjn
432 reads
432 reads

Optimizing your Vue App Using v-once and v-memo

by Johnny Simpson4mSeptember 4th, 2022
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Vue is like any other tool we use on the web - your mileage will vary depending on how you use it. If you write poorly optimized code, you'll still get a slow website. Today we'll be looking at how we can optimise performance using two little-known Vue HTML attributes known as `v-once` and v-memo. Both of these allow us to optimize when a component or component tree is re-rendered. V-once can be used pretty much anywhere - including within `for` loops - making it universally useful in Vue.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Optimizing your Vue App Using v-once and v-memo
Johnny Simpson HackerNoon profile picture
Johnny Simpson

Johnny Simpson

@smpnjn

Product, Engineering, Web

About @smpnjn
LEARN MORE ABOUT @SMPNJN'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Johnny Simpson HackerNoon profile picture
Johnny Simpson@smpnjn
Product, Engineering, Web

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite