Bug 1494162 - Part 16: Lazy load the TimeScale module in the animation reducer. r=pbro
☠☠ backed out by 14272a8b7f32 ☠ ☠
authorGabriel Luong <gabriel.luong@gmail.com>
Fri, 28 Sep 2018 13:14:33 -0400
changeset 494508 c1dac4bffc06affff447997009266209a9e04091
parent 494507 c90d929f87f2636e898503d8a22d3fa278ee75f4
child 494509 bbbf97a5802e06abd3e4ca3d285b6dcbc13bc360
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,