<?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: Inline css issues in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Inline-css-issues/m-p/1037505#M40577</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/822296"&gt;@madsmoller&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;yes. This is currently happening for several people in several portals. &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/141"&gt;@TomM2&lt;/a&gt;&amp;nbsp;noticed this a few days ago.&amp;nbsp;&lt;BR /&gt;Let's include a few other devs from the community to this so they can check their portals&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/363300"&gt;@Jnix284&lt;/a&gt;,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/101258"&gt;@Teun&lt;/a&gt;,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/87123"&gt;@melindagreen&lt;/a&gt;.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Two things I've tested the last couple of days:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{{ require_css(get_asset_url('../css/main.css')) }}
{# or theme-override.css #}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;are getting "inlined" with this method.&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Renaming it to something that is not main.css or theme-overrides.css(like combined-styles.css or customization.css) might help but I don't suggest to do this unless you really know every file of your theme&lt;/LI&gt;
&lt;LI&gt;I'm loading my css files differently on &lt;A href="https://graphispot.com" target="_blank" rel="noopener"&gt;my website&lt;/A&gt; that's why I was very surprised when&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/141"&gt;@TomM2&lt;/a&gt;&amp;nbsp;mentioned that in a chat...&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For anyone wondering how I'm loading my CSS:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;link rel="preload" href="{{ (get_asset_url("../../css/main.css")) }}" as="style" onload="this.onload=null;this.rel='stylesheet'"&amp;gt;
&amp;lt;noscript&amp;gt;
   &amp;lt;link rel="stylesheet" href="{{ (get_asset_url("../../css/main.css")) }}"&amp;gt;
&amp;lt;/noscript&amp;gt;

&amp;lt;link rel="preload" href="{{ (get_asset_url("../../css/theme.css")) }}" as="style" onload="this.onload=null;this.rel='stylesheet'"&amp;gt;
&amp;lt;noscript&amp;gt;
   &amp;lt;link rel="stylesheet" href="{{ (get_asset_url("../../css/theme.css")) }}"&amp;gt;
&amp;lt;/noscript&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;My recommendation:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Since this seems to be a bug/hickup that affects quite a lot of portals - HubSpot might be already working on a bug-fix. Therefore I wouldn't change anything in the next couple of days/September.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;best,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anton&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit:&lt;BR /&gt;I'm also tagging a few dev-community moderators. Maybe they have some insights on this or can help forward this issue towards HubSpot.&amp;nbsp;&lt;BR /&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074"&gt;@Jaycee_Lewis&lt;/a&gt;,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/169781"&gt;@kennedyp&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Sep 2024 12:43:56 GMT</pubDate>
    <dc:creator>Anton</dc:creator>
    <dc:date>2024-09-06T12:43:56Z</dc:date>
    <item>
      <title>Inline css issues</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Inline-css-issues/m-p/1037494#M40576</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Our sites&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;have CSS inlined in the source code instead of generating a link to the css file.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Our theme uses the following to add the css as a link.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{{ require_css(get_asset_url('../css/main.css')) }}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How do I change this behaviour?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We would like all those css lines in a css file and cached by CDN.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have talked with the Theme Developer and they told us that its an issues in Hubspot for some of their clients.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 12:17:57 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Inline-css-issues/m-p/1037494#M40576</guid>
      <dc:creator>madsmoller</dc:creator>
      <dc:date>2024-09-06T12:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: Inline css issues</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Inline-css-issues/m-p/1037505#M40577</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/822296"&gt;@madsmoller&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;yes. This is currently happening for several people in several portals. &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/141"&gt;@TomM2&lt;/a&gt;&amp;nbsp;noticed this a few days ago.&amp;nbsp;&lt;BR /&gt;Let's include a few other devs from the community to this so they can check their portals&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/363300"&gt;@Jnix284&lt;/a&gt;,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/101258"&gt;@Teun&lt;/a&gt;,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/87123"&gt;@melindagreen&lt;/a&gt;.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Two things I've tested the last couple of days:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{{ require_css(get_asset_url('../css/main.css')) }}
{# or theme-override.css #}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;are getting "inlined" with this method.&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Renaming it to something that is not main.css or theme-overrides.css(like combined-styles.css or customization.css) might help but I don't suggest to do this unless you really know every file of your theme&lt;/LI&gt;
&lt;LI&gt;I'm loading my css files differently on &lt;A href="https://graphispot.com" target="_blank" rel="noopener"&gt;my website&lt;/A&gt; that's why I was very surprised when&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/141"&gt;@TomM2&lt;/a&gt;&amp;nbsp;mentioned that in a chat...&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For anyone wondering how I'm loading my CSS:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;link rel="preload" href="{{ (get_asset_url("../../css/main.css")) }}" as="style" onload="this.onload=null;this.rel='stylesheet'"&amp;gt;
&amp;lt;noscript&amp;gt;
   &amp;lt;link rel="stylesheet" href="{{ (get_asset_url("../../css/main.css")) }}"&amp;gt;
&amp;lt;/noscript&amp;gt;

&amp;lt;link rel="preload" href="{{ (get_asset_url("../../css/theme.css")) }}" as="style" onload="this.onload=null;this.rel='stylesheet'"&amp;gt;
&amp;lt;noscript&amp;gt;
   &amp;lt;link rel="stylesheet" href="{{ (get_asset_url("../../css/theme.css")) }}"&amp;gt;
&amp;lt;/noscript&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;My recommendation:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Since this seems to be a bug/hickup that affects quite a lot of portals - HubSpot might be already working on a bug-fix. Therefore I wouldn't change anything in the next couple of days/September.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;best,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anton&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit:&lt;BR /&gt;I'm also tagging a few dev-community moderators. Maybe they have some insights on this or can help forward this issue towards HubSpot.&amp;nbsp;&lt;BR /&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074"&gt;@Jaycee_Lewis&lt;/a&gt;,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/169781"&gt;@kennedyp&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 12:43:56 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Inline-css-issues/m-p/1037505#M40577</guid>
      <dc:creator>Anton</dc:creator>
      <dc:date>2024-09-06T12:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: Inline css issues</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Inline-css-issues/m-p/1037553#M40581</link>
      <description>&lt;P&gt;I'm not seeing it happen, even when I recompile my CSS files to the "possibly offending" filenames, but I have a fairly custom setup in the first place -- almost all of my theme builds are 100% bespoke and I've ripped out all of the theme overrides and theme options because our agency builds each theme for a single brand.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So at least this indicates that the problem is not 100% based on file name.......&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 14:03:58 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Inline-css-issues/m-p/1037553#M40581</guid>
      <dc:creator>melindagreen</dc:creator>
      <dc:date>2024-09-06T14:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Inline css issues</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Inline-css-issues/m-p/1037620#M40582</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/17186"&gt;@Anton&lt;/a&gt;&amp;nbsp;for child themes, I change the require_css to:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;    {% set overwrite_child_css_path = '../../child.css' %}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;which forces the child.css to have the highest precedent in the theme and this is how it's showing now:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jnix284_0-1725637292714.png" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/126414i66CEB9D6D0FEDCC4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Jnix284_0-1725637292714.png" alt="Jnix284_0-1725637292714.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All of the theme CSS are either inline or like the above, with a few exceptions:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jnix284_1-1725637363186.png" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/126416i80B62CCB161F13CC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Jnix284_1-1725637363186.png" alt="Jnix284_1-1725637363186.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know without doubt that this was not the case previously and something has changed, this was flagged in Lighthouse and wasn't an issue before:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jnix284_2-1725637496065.png" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/126417i0DB66B105C16B704/image-size/large?v=v2&amp;amp;px=999" role="button" title="Jnix284_2-1725637496065.png" alt="Jnix284_2-1725637496065.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 15:45:05 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Inline-css-issues/m-p/1037620#M40582</guid>
      <dc:creator>Jnix284</dc:creator>
      <dc:date>2024-09-06T15:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: Inline css issues</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Inline-css-issues/m-p/1037667#M40585</link>
      <description>&lt;P&gt;Thanks for the tag&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/17186"&gt;@Anton&lt;/a&gt;&amp;nbsp;!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just confirming from a theme developer who is experiencing this there have been no changes to the theme.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are other people not using this theme who seem to be experiencing this.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've seen this happen on marketing hub pro, content hub pro, content starter, and legacy marketing ent portals.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'd say I first noticed it around last week (probablt Aug 26 at the earliest).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 18:02:07 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Inline-css-issues/m-p/1037667#M40585</guid>
      <dc:creator>TomM2</dc:creator>
      <dc:date>2024-09-06T18:02:07Z</dc:date>
    </item>
  </channel>
</rss>

