Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Is there away to include certain files into custom visual only in edit mode?

Hi,

 I was developing a custom visual and I was developing a custom editor view for it, lets say my complete editor code lies editor.js. I want to include this editor.js only in the edit mode, becoz loading this editor.js in view mode is unnecessary and increases the load time of the visual.

 

 

Thanks,

Praveen N

1 REPLY 1
v-viig
Community Champion
Community Champion

Hi Praveen,

 

You can include this file dynamicaly from another server by adding a script tag.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.