perspective icon indicating copy to clipboard operation
perspective copied to clipboard

localize resources from googleapi

Open Supertramplee opened this issue 4 years ago • 1 comments

Feature Request

Description of Problem:

shall we consider to localize resources which from googleapis ? this api sometimes will blocked by firewall / long loadtime

Potential Solutions:

  • remove & replace by local resource
  • or, allow customize themes (but actually, for perspective, we can easily change the theme we use, but we can't custom styles for regular-table !! which also use googleapis..)

thanks a lot. BTW, i can help if needed.

Supertramplee avatar Oct 25 '21 07:10 Supertramplee

I'm happy to make this easier but not sure what can be done exactly. The current Perspective examples use WebFontLoader which allows you to specify the repository and load behavior of the google fonts, and the CSS files themselves point to Google's font repo as a default, as as per Google's own docs on the subject.

I think the first step is to highlight exactly what problem needs tobe solved here - e.g. demos on bl.ocks.org are different from perspective-using apps within a corporate firewall, where WebFontLoader should be used to redirect requests.

texodus avatar Nov 01 '21 20:11 texodus