Bug 1494162 - Part 16: Lazy load the TimeScale module in the animation reducer. r=pbro
authorGabriel Luong <gabriel.luong@gmail.com>
Fri, 28 Sep 2018 13:14:33 -0400
changeset 494561 81c88e41f78b0c8956a5aabd4b5b72b3789ff313
parent 494560 61dd67d8c191b131262ce2b596ddc98041fa2a67
child 494562 63e5313bfc6d65759185af640c128183f08ae170
push id9984
push userffxbld-merge
push dateMon, 15 Oct 2018 21:07:35 +0000
treeherdermozilla-beta@183d27ea8570 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspbro
bugs1494162
milestone64.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1494162 - Part 16: Lazy load the TimeScale module in the animation reducer. r=pbro
devtools/client/inspector/animation/reducers/animations.js
--- a/devtools/client/inspector/animation/reducers/animations.js
+++ b/devtools/client/inspector/animation/reducers/animations.js
@@ -9,17 +9,17 @@ const {
   UPDATE_DETAIL_VISIBILITY,
   UPDATE_ELEMENT_PICKER_ENABLED,
   UPDATE_HIGHLIGHTED_NODE,
   UPDATE_PLAYBACK_RATES,
   UPDATE_SELECTED_ANIMATION,
   UPDATE_SIDEBAR_SIZE,
 } = require("../actions/index");
 
-const TimeScale = require("../utils/timescale");
+loader.lazyRequireGetter(this, "TimeScale", "devtools/client/inspector/animation/utils/timescale");
 
 const INITIAL_STATE = {
   animations: [],
   detailVisibility: false,
   elementPickerEnabled: false,
   highlightedNode: null,
   playbackRates: [],
   selectedAnimation: null,