From 76c0c0413de55a8865faaf60bbdfae0e76d52641 Mon Sep 17 00:00:00 2001 From: Toby Lawrence Date: Wed, 23 Mar 2016 12:29:47 -0400 Subject: [PATCH] Only require a module once. Looking at this code, I'm not entirely sure why it was added, but it's demonstrably loading modules twice when not in debug mode. --- .../templates/static_content.html | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/common/djangoapps/pipeline_mako/templates/static_content.html b/common/djangoapps/pipeline_mako/templates/static_content.html index 20e527f5c9..6b32456e54 100644 --- a/common/djangoapps/pipeline_mako/templates/static_content.html +++ b/common/djangoapps/pipeline_mako/templates/static_content.html @@ -70,21 +70,9 @@ source, template_path = Loader(engine).load_template_source(path) <%def name="require_module(module_name, class_name)">