Closed Bug 783965 Opened 12 years ago Closed 12 years ago

jsi18n script is set twice in page source

Categories

(developer.mozilla.org Graveyard :: Editing, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: teoli, Unassigned)

References

Details

In kuma / templates / base.html we see:
<script src="{{ url('jsi18n') }}build:{{ BUILD_ID_JS }}"></script>
{# js #}
{% block site_js %}
  <script src="//www.google.com/jsapi" type="text/javascript"></script>
  <script src="https://browserid.org/include.js" type="text/javascript"></script>
  <script src="//www.mozilla.org/tabzilla/media/js/tabzilla.js"></script>
  <script src="{{ url('jsi18n') }}build:{{ BUILD_ID_JS }}"></script>

The first and last scripts are the same. Most of the time this doesn't change much, but there are a few exceptions. When other resources load fail/take a long time, I have seen once in a while two loads of jsi18n in Firebug.

Though I don't expect much gain, it is a small clean-up anyway.
Commits pushed to master at https://github.com/mozilla/kuma

https://github.com/mozilla/kuma/commit/64e03f4823382e2fec66c6e493bbea944fc3da7b
fix bug 783965 - Remove duplicate script call

https://github.com/mozilla/kuma/commit/84eab5b8697d0ca1091ae224e8eef0c19e2658df
Merge pull request #524 from darkwing/jsi18n-783965

fix bug 783965 - Remove duplicate script call
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
verified fixed https://developer.allizom.org/en-US/
Status: RESOLVED → VERIFIED
Version: Kuma → unspecified
Component: Docs Platform → Editing
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.