<script async defer data-pin-hover="true" data-pin-tall="true" src="//assets.pinterest.com/js/pinit.js"></script>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<script>
const url = "//assets.pinterest.com/js/pinit.js"
const newScript = document.createElement("script")
newScript.setAttribute("async", "true")
newScript.setAttribute("defer", "true")
newScript.dataset.pinHover = "true"
newScript.dataset.pinTall = "true"
document.head.appendChild(newScript)
newScript.src = url
</script>
</body>
</html>