CMS Development

jjimeno
Participant | Diamond Partner
Participant | Diamond Partner

Best Javascript Framework

SOLVE

Hi! I just want to know your suggestion or any best javascript framework that's reliable and works best for Hubspot.  Right now we are using Vanilla JS and jquery but I'm not sure if that is the best practice and efficient?   Hope you can help me with this.    Thank you!   Regards,  Jess     

1 Accepted solution
Chris-M
Solution
Top Contributor

Best Javascript Framework

SOLVE

Hey @jjimeno ,

 
This is a great question...
But i think there is no right or wrong, no good or bad, just your own preference. At the end, vanilla js should give you the best performance, since it doesn't load any additional library or framework.
 
HubSpot depends on jQuery.
 
React.js could come handy, since HubSpot uses some components.
 
For myself I'm fine with vanilla js and jQuery. This works great for me. 
 
For the factor performance:
A little example, Bootstrap 5 is going to drop jQuery as dependency since they can do everything with vanilla, and save some kb... it's a little bit of pagespeed
 
- Chris

View solution in original post

2 Replies 2
Chris-M
Solution
Top Contributor

Best Javascript Framework

SOLVE

Hey @jjimeno ,

 
This is a great question...
But i think there is no right or wrong, no good or bad, just your own preference. At the end, vanilla js should give you the best performance, since it doesn't load any additional library or framework.
 
HubSpot depends on jQuery.
 
React.js could come handy, since HubSpot uses some components.
 
For myself I'm fine with vanilla js and jQuery. This works great for me. 
 
For the factor performance:
A little example, Bootstrap 5 is going to drop jQuery as dependency since they can do everything with vanilla, and save some kb... it's a little bit of pagespeed
 
- Chris
jjimeno
Participant | Diamond Partner
Participant | Diamond Partner

Best Javascript Framework

SOLVE

Hi Chris!

 

Thank you so much for this! 
This has been helpful 🙂 

 

0 Upvotes