How to load glb format file in my code?

This example works with GLTF format file, how I can make it work with glb format file? Thanks!

There should be no difference in loading and using .glb or .gltf files since they are both glTF format.
.glb is just binary rather than ASCII version.

Can you share the file you are having trouble with here?