I am facing an issue with my Vue.js components causing content to be displaced upon loading.
To address this, I have implemented specific CSS rules targeting the custom HTML tags for my Vue components like so:
custom-tag {
float: left;
width: 150px;
// etc.
}
For instance, this would apply to a CustomTag.vue component and ensure correct layout before Vue.js has fully replaced the custom tag with its corresponding component. This approach helps maintain proper layout even without JavaScript.
While this workaround functions adequately, it is not a flawless solution. Despite caching and separating Vue.js into a vendor file of just 135KB (gzipped), there still seems to be delayed implementation.
Struggling to find concrete solutions or resources for this Vue.js behavior, I am curious how others are managing similar challenges. Could the delay be attributed to slow loading Javascript on my end?