← Back to team overview

mahara-contributors team mailing list archive

[Bug 1796243] Re: js files loaded via Internet (18.10RC1)

 

I found a workaraound:

DL the js file an copy it to the js-root directory (www-root/js)

Open the web.php in lib directory

In line 222 replace the whole line with the internet url

with the following line

<code>$headers[] = '<script src="' . $jsroot.'jquery-
migrate-3.0.1.js"></script>';</code>

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1796243

Title:
  js files loaded via Internet (18.10RC1)

Status in Mahara:
  Invalid

Bug description:
  I wonder why some pages load so slow and when I inspect the sourcecode
  of these pages and found the following:

  Some of the js scripts are loaded locally but on some pages the js-
  file should load via internet.

  On Internet instances there are no problems, but on intranet instances
  it produces some errors.

  
  I found this behaviour on the following page (sourcecode):

  Start-Page/Dashboard -- <script src="https://code.jquery.com/jquery-
  migrate-3.0.1.js"></script>

  Afterwards i made grep in the htdocs directory to find files which
  include referrer to internet  .

  You will find 2 attached files for "grep cdn" and "grep jquery"

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1796243/+subscriptions


References