This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Script is not working

  • Akukho zimpendulo
  • 0 inale ngxaki
more options

Hi i have script

<script>

       (() => {
           const script = document.createElement("script");
           script.setAttribute("type", "text/javascript");
           script.src = "https://js.hsforms.net/forms/embed/v2.js";
           script.addEventListener("load", () => {
               hbspt.forms.create({
                   region: "na1",
                   portalId: "39672158",
                   formId: "892e2f84-627a-4c41-8f9e-642cb468a70c",
               });
           });


           document.head.append(script);
       })();
   </script>

I have contact the script provider team and it says that

For transparency, I'm going to relay what was shared in an internal inquiry:


Because it's an external feature of Firefox that is designed to disable exactly this kind of content (external tracking and forms), there isn't much we can do.

In Mozilla's docs they explicitly call out forms as one of the types of content this is designed to block which specifically mentions a few forms areas here.

Many websites load external ads, videos and other content with tracking code from other companies. For example, a website may embed a video from a video platform. The code that loads the video contains trackers. Blocking tracking content can make sites load much faster, but parts of pages might not work correctly or appear at all.


Tracking content can include:

Ads

Login fields

Forms

Payments

Comments

Videos and photos

Buttons

I can see this happening in the Private mode but can you see on your end, if following the settings in Firefox's documentation to disable this for all windows does the form appear in non-private mode? Hmm even after setting to custom and unchecking all the boxes the form script still doesn't load.

I added https://www.psbspeakers.com as an exception too but it doesn't appear to do the trick.

As far as this goes since this is something implemented by Firefox we're not able to overrule this on our end

so now what should i do

Hi i have script <script> (() => { const script = document.createElement("script"); script.setAttribute("type", "text/javascript"); script.src = "https://js.hsforms.net/forms/embed/v2.js"; script.addEventListener("load", () => { hbspt.forms.create({ region: "na1", portalId: "39672158", formId: "892e2f84-627a-4c41-8f9e-642cb468a70c", }); }); document.head.append(script); })(); </script> I have contact the script provider team and it says that For transparency, I'm going to relay what was shared in an internal inquiry: Because it's an external feature of Firefox that is designed to disable exactly this kind of content (external tracking and forms), there isn't much we can do. In Mozilla's docs they explicitly call out forms as one of the types of content this is designed to block which specifically mentions a few forms areas here. Many websites load external ads, videos and other content with tracking code from other companies. For example, a website may embed a video from a video platform. The code that loads the video contains trackers. Blocking tracking content can make sites load much faster, but parts of pages might not work correctly or appear at all. Tracking content can include: Ads Login fields Forms Payments Comments Videos and photos Buttons I can see this happening in the Private mode but can you see on your end, if following the settings in Firefox's documentation to disable this for all windows does the form appear in non-private mode? Hmm even after setting to custom and unchecking all the boxes the form script still doesn't load. I added https://www.psbspeakers.com as an exception too but it doesn't appear to do the trick. As far as this goes since this is something implemented by Firefox we're not able to overrule this on our end so now what should i do

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.