Ecommerce Shopify WordPress Discussion

ACF Blocks – Different blocks loading the same stylesheet several times

I created several blocks using the ACF Pro 6 block.json. The styles of each block I defined using Tailwind. I found it handy to point the style setting of each block to my main style.css, as i am using basically the same classes everywhere. But it happens that my main style.css is being loaded several times, as much blocks I have. The blocks being used or not in the page. Here is one example of block.json: { "name": "customizable-card-08", "title": "Text and Video", "description": "A customizable card with title, text, link, and color options.", "style": "file:../../style.css", // <---- trouble "category": "gechem-blocks", "icon": "format-aside", "apiVersion": 2, "keywords": ["video", "text"], "acf": { "mode": "edit", "renderTemplate": "card_08.php", "postTypes": ["post", "page"] }, "supports": { "anchor": true } } Run code snippetExpand snippet How can I prevent style.css from loading multiple times? Since the style path is required in the JSON, I attempted to direct the style in the JSON to a non-existent file path. This seems to prevent the style from being loaded repeatedly, and everything appears correctly on the front end since the classes are included in my main style.css. However, it removes the style I beautifully had in the backend/Gutenberg. Is there a solution where I can have the style.css not being loaded repeatedly and keep style on the back-end? Thanks <3
TurboCommerce make the better internet purchasing globaly

Turbo Multi-language Translator

Make the better internet purchasing globaly

Turbosify SEO Speed Booster

5.0 (7) Free plan available
Get better conversions by improving store loading speed Installed

Turbo Multi-language Chat - AI Customer service in one hand

TurboCommerce make the better internet purchasing globaly
Our products

The help you need, when you need it

App by Turbo Engine

3 apps • 5.0 average rating

Turbosify Speed Booster

5.0 (7)
Get better conversions by optimizing shopify store Google page speed Installed

Turbosify Translator for Wordpress Woocommerce

5.0 (74) Free Wordpress Woocommerce Plugin
Translate your wordpress website to multiple language within 1 click, no configuration needed, no No technical required

Grow your business here

Whether you want to sell products down the street or around the world, we have all the tools you need.