Removing links to CDN resources and substituing local versions to work with https