diff --git a/panel/io/resources.py b/panel/io/resources.py index 5a1d9f8100..ee87fa1690 100644 --- a/panel/io/resources.py +++ b/panel/io/resources.py @@ -183,7 +183,7 @@ def set_resource_mode(mode): _settings.resources.set_value(old_resources) def use_cdn() -> bool: - return _settings.resources(default="server") != 'server' + return _settings.resources(default="server") != 'server' or state._is_pyodide def get_dist_path(cdn: bool | Literal['auto'] = 'auto') -> str: cdn = use_cdn() if cdn == 'auto' else cdn