Pages not calling style sheets

I’m curious if anyone else has run into this.

I created a custom [global] module (footer menu excerpt below) that uses `require_css` to include a stylesheet that lives in a different HubSpot folder. The preview works as expected and I can see the stylesheet is attached.

I then created a drag and drop partial (footer.html excerpt below) which calls the [global] module. Again, the preview works as expected and I can see the stylesheet is attached.

I then created a drag and drop template (base.html excerpt below) which calls the partial. Again, the preview works as expected and I can see the stylesheet is attached.

I then created a page that uses the drag and drop template. The page displays all the content from the drag and drop template and partial, however the stylesheet is NOT attached. Inspecting the code reveals no errors, the stylesheet simply isn’t called (no errors).

What am I missing?

footer menu module excerpt:

{% import "otc/tools/load_files_macro.html" %}
{% set module_name = "footer-menu" %}
{{ load_files(module_name|regex_replace("-", " ")) }}

load_files_macro.html excerpt:

{%- macro load_files(fileName) -%}
 {{ require_css(get_asset_url("otc/css/main.css")) }}
 {{ require_css(get_asset_url("otc/css/theme-overrides.css")) }}
 {{ require_css(get_asset_url("otc/modules/"~fileName~"/"~fileName~".css")) }}
{%- endmacro -%}

footer.html excerpt:

{% dnd_module path="../../modules/footer menu/footer menu" is_large_text=True %}
 {% module_attribute "links" is_json=True %}
 [
 {"text": "OTC News", "url":{"href":"https://www.otcindustrial.com/otc-news"}},
 {"text": "Our Companies", "url":{"href":"https://www.otcindustrial.com/our-companies"}},
 {"text": "Industries Served", "url":{"href":"https://www.otcindustrial.com/otc-industries-served"}}
 ]
 {% end_module_attribute %}
{% end_dnd_module %}

base.html excerpt:

{% block footer %}
 {% global_partial path="../partials/footer.html" %}
{% endblock footer %}

Again, everything works as expected everywhere except at the page level where the stylesheets aren’t called.

@Oezcan , any thoughts here?

Thanks, @dennisedson. The issue seems to have resolved itself after a number of hours.

It wasn’t a caching issue on my end, and using `?hsCacheBuster=####` didn’t resolve the issue, so I’m curious what the problem might have been and how to avoid it in the future, if anyone has any insight…

@r_levine , I would chalk this up as a fluke. Might have been some CDN caching happening.