Closed RMCrean closed 2 weeks ago
As we discussed in PR https://github.com/ScilifelabDataCentre/genome-portal/pull/47, I've now adjusted the Hugo site so that the dependencies are declared where they are used in the codebase.
Additional changes:
head.html
baseof.html
defer
To keep this PR somewhat focused I haven't looked into testing "preconnect" vs "preload", can save that for another time :)
Thanks for the review, I will merge it now :)
As we discussed in PR https://github.com/ScilifelabDataCentre/genome-portal/pull/47, I've now adjusted the Hugo site so that the dependencies are declared where they are used in the codebase.
Additional changes:
head.html
partial and moved it's content directly intobaseof.html
, which is the only place that was referring to it.defer
to the leaflet js script. After adding a wait till the DOM is loaded, it worked nicely :)To keep this PR somewhat focused I haven't looked into testing "preconnect" vs "preload", can save that for another time :)