Skip to content

Commit 3d63afc

Browse files
committed
Merge pull request #2160 from getsentry/GH-2124
Lazy load barcharts on org index page (fixes #2124)
2 parents c86e33a + fb4e7f8 commit 3d63afc

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"react": "^0.13.3",
2929
"react-bootstrap": "^0.13.0",
3030
"react-document-title": "^1.0.2",
31+
"react-lazy-load": "^1.0.4",
3132
"react-router": "^0.13.3",
3233
"react-sticky": "^2.5.2",
3334
"reflux": "^0.3.0",

src/sentry/static/sentry/app/views/organizationTeams/expandedTeamList.jsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React from "react";
22
import Router from "react-router";
3+
import LazyLoad from "react-lazy-load";
34

45
import api from "../../api";
56
import BarChart from "../../components/barChart";
@@ -110,7 +111,7 @@ var ExpandedTeamList = React.createClass({
110111
</h5>
111112
</td>
112113
<td className="align-right project-chart">
113-
{chartData && <BarChart points={chartData} className="sparkline" /> }
114+
{chartData && <LazyLoad><BarChart points={chartData} className="sparkline" /></LazyLoad> }
114115
</td>
115116
</tr>
116117
);

0 commit comments

Comments
 (0)