Title: https://js.hsforms.net/forms/embed/v2.js (js.hsforms.net)
Last modified: March 14, 2023

---

# https://js.hsforms.net/forms/embed/v2.js (js.hsforms.net)

 *  Resolved [cp1132](https://wordpress.org/support/users/cp1132/)
 * (@cp1132)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/https-js-hsforms-net-forms-embed-v2-js-js-hsforms-net/)
 * page speed insights is complaining about this javascript slowing down our site
   [https://js.hsforms.net/forms/embed/v2.js](https://js.hsforms.net/forms/embed/v2.js)(
   js.hsforms.net)
 * ![](https://i0.wp.com/ubigro.com/wp-content/uploads/2023/03/Screen-Shot-2023-
   03-14-at-2.53.12-PM.png?ssl=1)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhttps-js-hsforms-net-forms-embed-v2-js-js-hsforms-net%2Fpage%2F2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 5 replies - 16 through 20 (of 20 total)

[←](https://wordpress.org/support/topic/https-js-hsforms-net-forms-embed-v2-js-js-hsforms-net/?output_format=md)
[1](https://wordpress.org/support/topic/https-js-hsforms-net-forms-embed-v2-js-js-hsforms-net/?output_format=md)
2

 *  Thread Starter [cp1132](https://wordpress.org/support/users/cp1132/)
 * (@cp1132)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/https-js-hsforms-net-forms-embed-v2-js-js-hsforms-net/page/2/#post-16625496)
 * I updated the php file.
   This code does not work when having multiple different
   forms on a page.
 *     ```wp-block-code
       <script> window.hsFormsOnReady = window.hsFormsOnReady || []; window.hsFormsOnReady.push(()=>{ hbspt.forms.create({ region: "na1", portalId: "8419634", formId: "d0de9b78-f8c6-4b96-b2fd-c2e78e483a5f", target: "#your-div-id", }) }); </script>
       ```
   
 * So I put it back to something like this:
 *     ```wp-block-code
       <script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/embed/v2.js"></script>
       <script>
         hbspt.forms.create({
           region: "na1",
           portalId: "8419634",
           formId: "96eaad71-152c-4ada-aba3-97b888373e9c"
         });
       </script>
       ```
   
 * Can you provide code that does work
 * Pagespeed is no different:
   [https://pagespeed.web.dev/analysis/https-ubigro-com/jueczbgr89?form_factor=desktop](https://pagespeed.web.dev/analysis/https-ubigro-com/jueczbgr89?form_factor=desktop)
    -  This reply was modified 3 years, 2 months ago by [cp1132](https://wordpress.org/support/users/cp1132/).
    -  This reply was modified 3 years, 2 months ago by [cp1132](https://wordpress.org/support/users/cp1132/).
 *  Thread Starter [cp1132](https://wordpress.org/support/users/cp1132/)
 * (@cp1132)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/https-js-hsforms-net-forms-embed-v2-js-js-hsforms-net/page/2/#post-16633553)
 * Hello?
 *  Thread Starter [cp1132](https://wordpress.org/support/users/cp1132/)
 * (@cp1132)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/https-js-hsforms-net-forms-embed-v2-js-js-hsforms-net/page/2/#post-16645866)
 * Can you still help me?
 *  [harthur90](https://wordpress.org/support/users/harthur90/)
 * (@harthur90)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/https-js-hsforms-net-forms-embed-v2-js-js-hsforms-net/page/2/#post-16647705)
 * Hi [@cp1132](https://wordpress.org/support/users/cp1132/)
 * Our capacity on threads is limited and at this moment we don’t have capacity 
   to work on the performance problem you reported. I’ll create a ticket in our 
   backlog and leave this thread as a placeholder if this is reported by other users
   we can re-prioritize.
 * Please also note that providing custom code for embedding forms is not part of
   the things we support – as we provide Gutenberg blocks and Elementor widgets 
   for that.
 * Best regards
 *  Thread Starter [cp1132](https://wordpress.org/support/users/cp1132/)
 * (@cp1132)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/https-js-hsforms-net-forms-embed-v2-js-js-hsforms-net/page/2/#post-16648624)
 * It is an issue on all of our clients’s websites that use embedded hubspot forms.
   
   Another example is this site: [https://pipphorticulture.com/](https://pipphorticulture.com/)
   [https://pagespeed.web.dev/analysis/https-pipphorticulture-com/jpjgbxasuf?form_factor=mobile](https://pagespeed.web.dev/analysis/https-pipphorticulture-com/jpjgbxasuf?form_factor=mobile)

Viewing 5 replies - 16 through 20 (of 20 total)

[←](https://wordpress.org/support/topic/https-js-hsforms-net-forms-embed-v2-js-js-hsforms-net/?output_format=md)
[1](https://wordpress.org/support/topic/https-js-hsforms-net-forms-embed-v2-js-js-hsforms-net/?output_format=md)
2

The topic ‘https://js.hsforms.net/forms/embed/v2.js (js.hsforms.net)’ is closed 
to new replies.

 * ![](https://ps.w.org/leadin/assets/icon-256x256.png?rev=3041936)
 * [HubSpot All-In-One Marketing - Forms, Popups, Live Chat](https://wordpress.org/plugins/leadin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/leadin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/leadin/)
 * [Active Topics](https://wordpress.org/support/plugin/leadin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/leadin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/leadin/reviews/)

 * 20 replies
 * 2 participants
 * Last reply from: [cp1132](https://wordpress.org/support/users/cp1132/)
 * Last activity: [3 years, 1 month ago](https://wordpress.org/support/topic/https-js-hsforms-net-forms-embed-v2-js-js-hsforms-net/page/2/#post-16648624)
 * Status: resolved