Bug 1592637 - [popup] Lazyload link.js in Description.js, r=julienw
authorJaStenson <jacob@nosnets.co.uk>
Mon, 18 Nov 2019 14:16:04 +0000
changeset 502414 ca19f048cd8dadec73b8214cbc4e8b5455f44c7b
parent 502413 03b7360a15ddfd9204518b663cfbd0598f611139
child 502415 abc0f2a2d5c6e62b3665de6dcaabd03f427fd623
push id114172
push userdluca@mozilla.com
push dateTue, 19 Nov 2019 11:31:10 +0000
treeherdermozilla-inbound@b5c5ba07d3db [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjulienw
bugs1592637
milestone72.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 1592637 - [popup] Lazyload link.js in Description.js, r=julienw Differential Revision: https://phabricator.services.mozilla.com/D53324
devtools/client/performance-new/components/Description.js
--- a/devtools/client/performance-new/components/Description.js
+++ b/devtools/client/performance-new/components/Description.js
@@ -4,33 +4,33 @@
 "use strict";
 
 const { PureComponent } = require("devtools/client/shared/vendor/react");
 const {
   div,
   button,
   p,
 } = require("devtools/client/shared/vendor/react-dom-factories");
-const { openDocLink } = require("devtools/client/shared/link");
 
 /**
  * This component provides a helpful description for what is going on in the component
  * and provides some external links.
  */
 class Description extends PureComponent {
   static get propTypes() {
     return {};
   }
 
   constructor(props) {
     super(props);
     this.handleLinkClick = this.handleLinkClick.bind(this);
   }
 
   handleLinkClick(event) {
+    const { openDocLink } = require("devtools/client/shared/link");
     openDocLink(event.target.value);
   }
 
   /**
    * Implement links as buttons to avoid any risk of loading the link in the
    * the panel.
    */
   renderLink(href, text) {