skip to Main Content

Error appending SCRIPT HTML tag through jQuery

I'm managing a WordPress website using jQuery v3.6.0 + jQuery.migrate, it triggers a very weird error every time a SCRIPT code is appended to the page. For example: jQuery('body').append('<script>console.log("test")</script>'); The returned error is Uncaught TypeError: n.head.appendChild(...) is undefined Anyone has…

VIEW QUESTION
Back To Top
Search