Triple load javascript on cognitio theme

Re: Odp: Re: Triple load javascript on cognitio theme

by Joko Christian -
Number of replies: 0
Hi Mariuz

this thread is before I contacted you (as suggested by Gareth) personally via email. The fix you mention regarding changing the moodle/theme/mb2cg/javascript/theme-amd.js file.

I have changed the content to : 
require(['theme_boost/loader']);

but I noticed that there is still double identical script loaded on the frontpage, so I edited it further to become:
if (window.location.href!="https://domainname/") {require(["theme_boost/loader"]);}

and now on my frontpage there's no more identical javascript loaded, and my GTMetric score is 'A'

thanks for the support, the problem is fixed now.