CMS Development

John
Top Contributor | Platinum Partner
Top Contributor | Platinum Partner

Module v2 Linked Files - Bloat Prevention

Is there a way to prevent duplicate libraries when two modules (from different developers) call them?

 

For example, if two modules use fontawesome, how does HubSpot prevent each module from calling it, resulting in 2 http requests? Or what if one module uses fontawesome 4 and the other uses fontawesome 5?

 

In wordpress, there is a way to enqueue scripts / libraries to prevent this. Does HubSpot recommend any best practice in module development?



I like kudos almost as much as cake – a close second.

0 Upvotes
1 Reply 1
roisinkirby
HubSpot Product Team
HubSpot Product Team

Module v2 Linked Files - Bloat Prevention

Sorry for the delay here @John!

 

@anthonypizzurro@JasonRosa@EricSalvi could any of you help @John with this question and/or do you know of anyone who I could help dig further into this. 

0 Upvotes