Maybe someone from Hubspot can answer this question to me. I have site where I’m using sliders - slick & glide, i want to remove slick because of jquery and want to remove glide because is not being maintained.
I see that hubspot added a module with a slider and are using splide, but I also see that the latest update in splide is from 2022.
I would like to move to a slider that is mantained, but I don’t want users to be adding modules and having multiple sliders on my pages.
I've used swiper.js for many years before moving over to splide a while ago. I've moved because of performance issues and since the latest swiper.js version I've used(at least tried) was quite buggy and lead to many errors.
Using the newest version is something that almost every developer should advise you against. The idea of "oh look - a shine new thing, I want it" is not the way you should make decisions that might be used for quite some time.
Splide is a great slider script with a lot of options and possibilities. So I wouldn't suggest not to use it only because it's last update was 1,5- 2 years ago (and no I'm not a splide fan-boy by any means). But it fully depends on what you're trying to achieve.
From a developers perspective the key is how splide (or any gallery script) would be implemented in modules/your theme to have the best possible performance.
@Sasha-A8 It's quite outdated and almost replaced by the newest web-technologies and if implemted not correctly it might have an negative impact on page-speed?!
HubSpot doesn't recommend jQuery; they stopped supporting the option years ago which is why it still only gives the options for versions 1.7 and 1.11.X while JQuery is already at version 3.7.1. They only left the option for backwards compatibility. Even in the documentation where they show how to add the latest versions of jQuery to older websites they state "going jQuery free is generally better for performance and security".
If this answer solved your question, please mark it as the solution.
Everything? Always been a bad idea and especially in 2024. jQuery was relevant a decade ago
Why, for something as trivial as a marketing website on a platform like HubSpot, would you degrade a website w/ a bloated JS wrapper? The only thing jQuery does is enforce lazy dev for people that can't be bothered to learn how to actually code and use ES6, so they include a bloated external JS library that's wildly unnecessary. There is nothing on a marketing website short terse clean Vanilla JS cannot accomplish. And, any package still using jQuery should be phased out as well.
This , by it's definition, is a degradation to web performance
I've used swiper.js for many years before moving over to splide a while ago. I've moved because of performance issues and since the latest swiper.js version I've used(at least tried) was quite buggy and lead to many errors.
Using the newest version is something that almost every developer should advise you against. The idea of "oh look - a shine new thing, I want it" is not the way you should make decisions that might be used for quite some time.
Splide is a great slider script with a lot of options and possibilities. So I wouldn't suggest not to use it only because it's last update was 1,5- 2 years ago (and no I'm not a splide fan-boy by any means). But it fully depends on what you're trying to achieve.
From a developers perspective the key is how splide (or any gallery script) would be implemented in modules/your theme to have the best possible performance.
@Sasha-A8 It's quite outdated and almost replaced by the newest web-technologies and if implemted not correctly it might have an negative impact on page-speed?!
@Anton jquery just got updated recently. It's still being actively maintained. And it's still one of the most used frameworks on the web today. Other than that, even HubSpot seems to recommend jquery by giving you an option to automatically include it in your website settings. I think anything not implemented correctly will impact page speed.
HubSpot doesn't recommend jQuery; they stopped supporting the option years ago which is why it still only gives the options for versions 1.7 and 1.11.X while JQuery is already at version 3.7.1. They only left the option for backwards compatibility. Even in the documentation where they show how to add the latest versions of jQuery to older websites they state "going jQuery free is generally better for performance and security".
If this answer solved your question, please mark it as the solution.