Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
4debb4a2
Commit
4debb4a2
authored
Mar 11, 2016
by
Toby Lawrence
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #11784 from edx/PERF-265
Move any uncached JS to be cached
parents
5272b7e3
4eb95737
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
lms/envs/common.py
+5
-1
lms/templates/courseware/courseware.html
+0
-5
lms/templates/main.html
+2
-1
No files found.
lms/envs/common.py
View file @
4debb4a2
...
...
@@ -1633,7 +1633,11 @@ REQUIRE_ENVIRONMENT = "node"
# then you need to add the js urls in this list.
REQUIRE_JS_PATH_OVERRIDES
=
[
'js/bookmarks/views/bookmark_button.js'
,
'js/views/message_banner.js'
'js/views/message_banner.js'
,
'js/vendor/moment.min.js'
,
'js/vendor/url.min.js'
,
'js/courseware/course_home_events.js'
,
'js/courseware/toggle_element_visibility.js'
]
################################# CELERY ######################################
...
...
lms/templates/courseware/courseware.html
View file @
4debb4a2
...
...
@@ -5,7 +5,6 @@ from django.utils.translation import ugettext as _
from
django
.
template
.
defaultfilters
import
escapejs
from
django
.
conf
import
settings
from
edxnotes
.
helpers
import
is_feature_enabled
as
is_edxnotes_enabled
from
pipeline_mako
import
render_require_js_path_overrides
%
>
<
%
include_special_exams =
settings.FEATURES.get('ENABLE_SPECIAL_EXAMS',
False
)
and
(
course
.
enable_proctored_exams
or
course
.
enable_timed_exams
)
...
...
@@ -16,10 +15,6 @@ from pipeline_mako import render_require_js_path_overrides
<
%
block
name=
"bodyclass"
>
view-in-course view-courseware courseware ${course.css_class or ''}
</
%
block>
<
%
block
name=
"js_overrides"
>
${render_require_js_path_overrides(settings.REQUIRE_JS_PATH_OVERRIDES)}
</
%
block>
<
%
block
name=
"title"
><title>
% if section_title:
${static.get_page_title_breadcrumbs(section_title, course_name())}
...
...
lms/templates/main.html
View file @
4debb4a2
...
...
@@ -6,6 +6,7 @@ from django.utils.http import urlquote_plus
from
django
.
utils
.
translation
import
ugettext
as
_
from
django
.
utils
.
translation
import
get_language_bidi
from
branding
import
api
as
branding_api
from
pipeline_mako
import
render_require_js_path_overrides
%
>
<!DOCTYPE html>
<!--[if lte IE 9]><html class="ie ie9 lte9" lang="${LANGUAGE_CODE}"><![endif]-->
...
...
@@ -77,8 +78,8 @@ from branding import api as branding_api
}).
call
(
this
,
require
||
RequireJS
.
require
);
</script>
<script
type=
"text/javascript"
src=
"${static.url("
lms
/
js
/
require-config
.
js
")}"
></script>
<
%
block
name=
"js_overrides"
>
${render_require_js_path_overrides(settings.REQUIRE_JS_PATH_OVERRIDES)}
</
%
block>
% if not disable_courseware_js:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment