Browse Source

Add performance tips to timeline docs (#3360)

revert-3409-performance
Yotam Berkowitz 7 years ago
committed by GitHub
parent
commit
8a8234d904
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      docs/timeline/index.html

+ 9
- 0
docs/timeline/index.html View File

@ -2113,6 +2113,15 @@ var options = {
</style> </style>
</pre> </pre>
<h3 id="Performance_Tips">Performance Tips</h3>
<p>Defining a timeline with many items and/or groups might affect initial loading time and general performance.
Here are some tips to improve performance and avoid slow loading time:</p>
<ul>
<li>Define items and group with <code>DataSets</code></li>
<li>Avoid applying heavy CSS on items (such as <code>box-shadow</code>, gradient background colors, etc.)</li>
<li>Defining a <code>start</code> and an <code>end</code> in the timeline options.
This will improve initial loading time.</li>
</ul>
</div> </div>
<!-- Bootstrap core JavaScript <!-- Bootstrap core JavaScript

Loading…
Cancel
Save