We were using 'LoadingOverlay.js' to display loading overlay before page gets loaded like
We are adding it like bellow in content of page like this.
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="/local/Custom/javascript/LoadingOverlay.js"></script>
Were are getting error 'TypeError: $.LoadingOverlay is not a function' as shown
We resolved it once by following changes in Moodle 3.5, in file "moodle/lib/requirejs/moodle-config.js"
form
map: {
'*': { jquery: 'jqueryprivate' },
'*': { process: 'core/first' },
jqueryprivate: { jquery: 'jquery' }
}
to
map: {
'*': {
jquery: 'jqueryprivate',
process: 'core/first'
},
// '*': { process: 'core/first' },
jqueryprivate: { jquery: 'jquery' }
}
But now in Moodle 3.6.1, it is now working.
Any help is welcome!!!