With the latest release of Cesium, we’ve made this much easier. Here’s a small snippet below.
var cesiumWidget = new Cesium.Viewer(‘cesiumContainer’);
var czmlSource = new Cesium.CzmlDataSource();
That will load the CZML, but if it’s time-dynamic, you still need to make sure you set the clock to the same time in the czml. If you are loading a CZML that you know nothing about, you can get the time settings in the CZML by calling czmlSource.getClock(), however you need to do this after the load happens. Since loadUrl returns a Promise, the code would look something like this:
var clock = czmlSource.getClock();