# What does include\_plotlyjs=“cdn” do?

**URL:** https://community.plotly.com/t/what-does-include-plotlyjs-cdn-do/50457
**Category:** 📊 Plotly Python
**Created:** [February 26, 2021, 5:45am UTC](https://community.plotly.com/t/what-does-include-plotlyjs-cdn-do/50457 "2021-02-26T05:45:35Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![sleepyPanda](https://avatars.discourse-cdn.com/v4/letter/s/ed8c4c/32.png) [@sleepyPanda](https://community.plotly.com/u/sleepyPanda)
#### Post date: [February 26, 2021, 5:45am UTC](https://community.plotly.com/t/what-does-include-plotlyjs-cdn-do/50457/1 "2021-02-26T05:45:35Z")

</div>

My goal is to generate an interactive html file from plotly fig and embed this html in my website. I was previously using _fig.write\_html(‘name.html’)_ , but in the generated HTML, there are some unwanted symbols like ampersands(&&). Now, I tried adding cdn like _fig.write\_html(‘name.html’, include\_plotlyjs=“cdn”)_ , which solves the && problem but I have some questions about this:

1. On using cdn, is my data still secured/private, and can there be some possible complications on embedding this html to my website?
2. Is there any better/alternate way of removing the && symbols/cleaning the initial html file generated by plotly?

---

<div class="post-metadata">

### Author: ![pandeysa](https://avatars.discourse-cdn.com/v4/letter/p/c0e974/32.png) [@pandeysa](https://community.plotly.com/u/pandeysa)
#### Post date: [February 27, 2021, 4:39am UTC](https://community.plotly.com/t/what-does-include-plotlyjs-cdn-do/50457/2 "2021-02-27T04:39:52Z")

</div>

including cdn will just include js library to your html and apprently reduce size of file from 3.X MB to few KBs.  
it is secure . you just need to make sure that you have internet connection on when viewing the html file as it will load plotly cdn from internet.
