Jump to content

Override insecure jQuery and Bootstrap libraries?


TVBZ

Recommended Posts

Hi,

I am new to PS, currently building a site using PS 1.7.6.5.

As a theme, I am building a child theme of the default "classic" theme.
I am only using the standard (free) PS modules. All extra function I needed, I created myself in the child theme.

Doing some tests in Google Lighthouse, it becomes clear PS uses an insecure and old scripts.

  • jQuery is allready at 3.5.1, but for some reason the latest PS still uses 2.2.4.
  • jQuery UI is at 1.12 today, PS uses 1.10.3
  • Bootstrap is at 4.5.0, PS uses 4.0.0

Why is this?


Is it possible to override these scripts with a newer version inside my child theme? 
If yes, how?
If no, why not?

 

image.png.91a82e72d5b2d6537dcd0971e49a8d59.png

Edited by TVBZ (see edit history)
Link to comment
Share on other sites

30 minutes ago, musicmaster said:

Prestashop uses a lot of third party software plugins. It is for them that it sticks to older software versions.

Yes, I understand. But the question is if the scripts can be overridden in theme folders?

Most CMS use some outdated scripts for the same reason.
Major players like Joomla or WordPress have the option to load a newer version of a script like jQuery from inside a theme.
And off course this is at own risk and should be tested properly.

But does PrestaShop support this?

Edited by TVBZ (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...