To solve the problem
specify the following options from the menu Advanced Settings >> Performance.
CCC (Concatenation, and Compression setting Cache)
This is a bug in Prestashop which considers many external scripts in http but not https.
You can fix it by changing the line 500 in classes / media.php:
if ($expr == 'http')
if ($expr == 'http' or $expr == 'https')