I have verified the sample. Its working without internet.
If you are using any online cdn, then you need to add JavaScript file (js) and Style Sheet (css).
Then paste the relevant content to corresponding files.
Then import the files in the page to use it.