ScilifelabDataCentre / genome-portal

This is the repository for the Swedish Reference Genome Portal, a service facilitating access and discovery of genome data of non-model eukaryotic species studied in Sweden
https://genomes.scilifelab.se/
MIT License
0 stars 0 forks source link

EB-141: Use vanilla JS instead of jquery where possible #47

Closed RMCrean closed 4 weeks ago

RMCrean commented 1 month ago

Before this PR, jQuery was added as a dependency for all pages and used in some pages as part of some JS scripts throughout the website. I've now removed it to only be used when the Datatables library is loaded (jquery is a dependency) and replaced the other instances with vanilla JS. This therefore helps to improve the sites' load speed by not having to load jquery from a CDN.

I've also taken the opportunity to move all downloads of scripts/style sheets to one place, head.html, so it is easier to keep track of. Finally I've added some preconnects too to help with the site's loading speeds.