Recommended Slider for Themes

mariana_pic
Mitwirkender/Mitwirkende | Platinum Partner
Mitwirkender/Mitwirkende | Platinum Partner

Hello team

 

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.

 

Is hubspot recommending splide?

2 Akzeptierte Lösungen
Anton
Lösung
Vordenker/-in | Partner
Vordenker/-in | Partner

Hi @mariana_pic

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?!

 

 

best, 

Anton

Anton Bujanowski Signature

Lösung in ursprünglichem Beitrag anzeigen

0 Upvotes
alyssamwilie
Lösung
Trendsetter/-in

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.

Alyssa Wilie Profile Image

Alyssa Wilie

Web Developer at Lynton

Learn HubL | Get Marketing Insights

Lynton's HubSpot theme Rubric now available. Click to download.

Lösung in ursprünglichem Beitrag anzeigen

6 Antworten 6
Sasha-A8
Mitwirkender/Mitwirkende | Elite Partner
Mitwirkender/Mitwirkende | Elite Partner

What's wrong with using jquery?

Sasha Sosin. Technologist, WebOps. RevPartners. Ready to level up your business? Click here to get a customized hubspot plan.


0 Upvotes
NBrown67
Teilnehmer/-in

@Sasha-A8 wrote:

What's wrong with using jquery?


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 

0 Upvotes
mariana_pic
Mitwirkender/Mitwirkende | Platinum Partner
Mitwirkender/Mitwirkende | Platinum Partner

And what would you do about the slider?

Just no slider?
We were using glide and now google is marking it as legacy...

What do you think about swiper.js or splide.js?



0 Upvotes
Anton
Lösung
Vordenker/-in | Partner
Vordenker/-in | Partner

Hi @mariana_pic

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?!

 

 

best, 

Anton

Anton Bujanowski Signature
0 Upvotes
Sasha-A8
Mitwirkender/Mitwirkende | Elite Partner
Mitwirkender/Mitwirkende | Elite Partner

@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. 

Sasha Sosin. Technologist, WebOps. RevPartners. Ready to level up your business? Click here to get a customized hubspot plan.


0 Upvotes
alyssamwilie
Lösung
Trendsetter/-in

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.

Alyssa Wilie Profile Image

Alyssa Wilie

Web Developer at Lynton

Learn HubL | Get Marketing Insights

Lynton's HubSpot theme Rubric now available. Click to download.