low performance with tailwind.. #7411
-
page load speed becomes slow (especially on iOS devices) as the items in the list get larger like 400. I don't have a problem on a different page with the same count of elements, written in Pure CSS. And also, when I swipe up and down faster, sometimes there is no items seen while moving screen (iOS). But there is no problem on pure css.. If items count 20-30, there is no problem.. How can I improve/optimize Tailwind performance? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 9 replies
-
Update When I remove below lines in :before block in .css (via manual edit .css file) its become faster.
|
Beta Was this translation helpful? Give feedback.
-
Hey! Try this: // tailwind.config.js
module.exports = {
experimental: {
optimizeUniversalDefaults: true
}
// ...
} We wanted to make this the default for v3 but it doesn't play nicely with CSS modules or Vue/Svelte style blocks :/ We always use that option ourselves though. |
Beta Was this translation helpful? Give feedback.
-
what does |
Beta Was this translation helpful? Give feedback.
Hey! Try this:
We wanted to make this the default for v3 but it doesn't play nicely with CSS modules or Vue/Svelte style blocks :/ We always use that option ourselves though.