defer and async
-
adding defer or async both makes the form not load at all
This works <script charset="utf-8" type="text/javascript" src="https://js.hsforms.net/forms/embed/v2.js"></script> <script> hbspt.forms.create({ region: "na1", portalId: "8419634", formId: "3d0d5fbc-9869-405c-8e49-2e623e9585c7" }); </script>
This doesn't work <script defer charset="utf-8" type="text/javascript" src="https://js.hsforms.net/forms/embed/v2.js"></script> <script> hbspt.forms.create({ region: "na1", portalId: "8419634", formId: "3d0d5fbc-9869-405c-8e49-2e623e9585c7" }); </script>
This doesn't work <script async charset="utf-8" type="text/javascript" src="https://js.hsforms.net/forms/embed/v2.js"></script> <script> hbspt.forms.create({ region: "na1", portalId: "8419634", formId: "3d0d5fbc-9869-405c-8e49-2e623e9585c7" }); </script>
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘defer and async’ is closed to new replies.