you should call any jquery code in a mounted hook. And if jquery does something with child-components, there’s no better way other than adding setTimeout for your jquery code, which is in a mounted hook
dirty hack: extract your code into a variable and write it down in the window-namespace.
window.jqueryJunk = function() { $(‘body’).remove() }
jQuery(document).ready(jqueryJunk)
This is inside of your .js file. And the following is inside of a page component:
mounted(){
setTimeout(() => {
window.jqueryJunk()
}, 500)
}