Commit 775c3cac by Toby Lawrence

Merge pull request #11190 from edx/PERF-227

Disable Optimizely in the courseware view.
parents ded3786d 09f2040c
......@@ -441,6 +441,7 @@ def _index_bulk_op(request, course_key, chapter, section, position):
'xqa_server': settings.FEATURES.get('XQA_SERVER', "http://your_xqa_server.com"),
'bookmarks_api_url': bookmarks_api_url,
'language_preference': language_preference,
'disable_optimizely': True,
}
now = datetime.now(UTC())
......
% if settings.OPTIMIZELY_PROJECT_ID:
% if settings.OPTIMIZELY_PROJECT_ID and not disable_optimizely:
<script src=${'//cdn.optimizely.com/js/{}.js'.format(settings.OPTIMIZELY_PROJECT_ID)}></script>
% endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment