<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Page Load Time Issues with Meetings in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Page-Load-Time-Issues-with-Meetings/m-p/391348#M19922</link>
    <description>&lt;P&gt;Just chipping in here with something I've done that could be applied here. I achieved a ~90+ on desktop and ~50 on mobile in Google PageSpeed. Basically the idea is to delay scripts until a user action like scrolling.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example I used the below for Intercom via GTM on our site: it forces intercom to wait 1 second after the page is scrolled to load, and SEO bots/crawlers don't scroll the page so it won't load for them.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;var scriptOnScroll = function() {
  setTimeout(function() {
    // script goes here
  }, 1000);
};

window.addEventListener("scroll", scriptOnScroll, {once: true});&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the case above you&amp;nbsp;&lt;SPAN&gt;could remove the src from the script element and then add it in after a set time after scroll or load e.g.&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;script type="text/javascript" src="" defer id="meetingsScript"&amp;gt;&amp;lt;/script&amp;gt;&lt;/LI-CODE&gt;&lt;LI-CODE lang="javascript"&gt;var scriptOnScroll = function() {
  setTimeout(function() {
    var meetScript = document.getElementById('meetingsScript');
    meetScript.setAttribute('src','https://static.hsappstatic.net/MeetingsEmbed/ex/MeetingsEmbedCode.js');
  }, 1000);
};

window.addEventListener("scroll", scriptOnScroll, {once: true});&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 04 Dec 2020 16:53:51 GMT</pubDate>
    <dc:creator>piersg</dc:creator>
    <dc:date>2020-12-04T16:53:51Z</dc:date>
    <item>
      <title>Page Load Time Issues with Meetings</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Page-Load-Time-Issues-with-Meetings/m-p/388140#M19724</link>
      <description>&lt;P&gt;&lt;SPAN&gt;We are having some issues with page load time. Can we turn off some settings/tracking to help speed up our page load? We need to optimize for page loading speed when our HubSpot services are being used?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We have noticed that the demo button we use on our site using this JS code ….&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;div class="meetings-iframe-container" data-src="&lt;A href="https://app.hubspot.com/meetings/starchaptermeetings/starchapterdemo?embed=true" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;&lt;SPAN&gt;https://app.hubspot.com/meetings/starchaptermeetings/starchapterdemo?embed=true&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/A&gt;"&amp;gt;&amp;lt;/div&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;script async="" src="&lt;A href="https://fullstory.com/s/fs.js" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;&lt;SPAN&gt;https://fullstory.com/s/fs.js&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/A&gt;" crossorigin="anonymous"&amp;gt;&amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;script type="text/javascript" src="&lt;A href="https://static.hsappstatic.net/MeetingsEmbed/ex/MeetingsEmbedCode.js" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;&lt;SPAN&gt;https://static.hsappstatic.net/MeetingsEmbed/ex/MeetingsEmbedCode.js&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/A&gt;"&amp;gt;&amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;/div&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;…. is causing a large change in our site performance. We would like to know if you have a recommended method whereby, we can load this script after the page loads (deferred loading) so that it will not impact the user experience? We have considered using a load event and then loading your script, but we don't want to break the script based on how it works on your end and would like your guidance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Most of what I got came from the Google Dev tools "lighthouse" (in the inspector) and&amp;nbsp;&lt;A href="http://tools.pingdom.com/" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;&lt;SPAN&gt;tools.pingdom.com&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/A&gt;. However, those tools will not help you all. What we did with those tools is compare our site load speed with and without hubspot on our site and That was the big difference. Page size, load time, additional references, and time to interact all increased significantly when hubspot code was on our site.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The question we really need answered is "can we load your stuff after the page loads or will that break your stuff".”&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Nov 2020 14:22:13 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Page-Load-Time-Issues-with-Meetings/m-p/388140#M19724</guid>
      <dc:creator>RebeccaCwick</dc:creator>
      <dc:date>2020-11-20T14:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: Page Load Time Issues with Meetings</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Page-Load-Time-Issues-with-Meetings/m-p/388640#M19769</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/10924"&gt;@RebeccaCwick&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for the question!&lt;/P&gt;
&lt;P&gt;Going to invite a few people to this conversation!&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/73772"&gt;@Kevin-C&lt;/a&gt; , &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/17186"&gt;@Anton&lt;/a&gt; , do you guys have thoughts on this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Nov 2020 19:58:51 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Page-Load-Time-Issues-with-Meetings/m-p/388640#M19769</guid>
      <dc:creator>dennisedson</dc:creator>
      <dc:date>2020-11-23T19:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: Page Load Time Issues with Meetings</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Page-Load-Time-Issues-with-Meetings/m-p/388656#M19773</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/13982"&gt;@dennisedson&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hey &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/10924"&gt;@RebeccaCwick&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can defer the scripts using the "defer" property:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;div class="meetings-iframe-container" data-src="https://app.hubspot.com/meetings/starchaptermeetings/starchapterdemo?embed=true"&amp;gt;&amp;lt;/div&amp;gt;

  &amp;lt;script src="https://fullstory.com/s/fs.js" crossorigin="anonymous" defer&amp;gt;&amp;lt;/script&amp;gt;

  &amp;lt;script type="text/javascript" src="https://static.hsappstatic.net/MeetingsEmbed/ex/MeetingsEmbedCode.js" defer&amp;gt;&amp;lt;/script&amp;gt;

&amp;lt;/div&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;But this won't speed up the page, it will just prevent that script's loading from blocking the rendering of the page.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;An important question to ask is why are you trying to speed up the page load?&lt;/P&gt;
&lt;P&gt;Is it because Google says it's slow?&lt;/P&gt;
&lt;P&gt;Or is it because the scripts are blocking the rendering of the page, aka making the pages unusable on first paint?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This comes up quite often here on the forum. Poke around a little and see what others have found:&lt;/P&gt;
&lt;P&gt;- See what &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/133"&gt;@stefen&lt;/a&gt; and&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/3688"&gt;@Jsum&lt;/a&gt; had to say &lt;A href="https://community.hubspot.com/t5/CMS-Development/Speed-**bleep**/m-p/3380" target="_blank" rel="noopener"&gt;here&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Nov 2020 21:01:41 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Page-Load-Time-Issues-with-Meetings/m-p/388656#M19773</guid>
      <dc:creator>Kevin-C</dc:creator>
      <dc:date>2020-11-23T21:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: Page Load Time Issues with Meetings</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Page-Load-Time-Issues-with-Meetings/m-p/391348#M19922</link>
      <description>&lt;P&gt;Just chipping in here with something I've done that could be applied here. I achieved a ~90+ on desktop and ~50 on mobile in Google PageSpeed. Basically the idea is to delay scripts until a user action like scrolling.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example I used the below for Intercom via GTM on our site: it forces intercom to wait 1 second after the page is scrolled to load, and SEO bots/crawlers don't scroll the page so it won't load for them.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;var scriptOnScroll = function() {
  setTimeout(function() {
    // script goes here
  }, 1000);
};

window.addEventListener("scroll", scriptOnScroll, {once: true});&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the case above you&amp;nbsp;&lt;SPAN&gt;could remove the src from the script element and then add it in after a set time after scroll or load e.g.&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;script type="text/javascript" src="" defer id="meetingsScript"&amp;gt;&amp;lt;/script&amp;gt;&lt;/LI-CODE&gt;&lt;LI-CODE lang="javascript"&gt;var scriptOnScroll = function() {
  setTimeout(function() {
    var meetScript = document.getElementById('meetingsScript');
    meetScript.setAttribute('src','https://static.hsappstatic.net/MeetingsEmbed/ex/MeetingsEmbedCode.js');
  }, 1000);
};

window.addEventListener("scroll", scriptOnScroll, {once: true});&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 04 Dec 2020 16:53:51 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Page-Load-Time-Issues-with-Meetings/m-p/391348#M19922</guid>
      <dc:creator>piersg</dc:creator>
      <dc:date>2020-12-04T16:53:51Z</dc:date>
    </item>
  </channel>
</rss>

