Ox.UI: preload fewer images
This commit is contained in:
parent
85f513af45
commit
cd0afb6be2
1 changed files with 2 additions and 2 deletions
|
@ -196,14 +196,14 @@ def build_oxjs(downloads=False, geo=False):
|
||||||
# locale json files are loaded lazily
|
# locale json files are loaded lazily
|
||||||
# Ox.UI.css imports all other css files
|
# Ox.UI.css imports all other css files
|
||||||
# svgs are loaded as URLs or dataURLs
|
# svgs are loaded as URLs or dataURLs
|
||||||
# browser images appear before load
|
# Ox.UI PNGs are loaded on demand
|
||||||
if path != root and not '_' in path and not filename[0] in '._' \
|
if path != root and not '_' in path and not filename[0] in '._' \
|
||||||
and not filename.endswith('~') \
|
and not filename.endswith('~') \
|
||||||
and not 'jquery' in filename \
|
and not 'jquery' in filename \
|
||||||
and not 'locale' in filename \
|
and not 'locale' in filename \
|
||||||
and not filename.endswith('theme.css') \
|
and not filename.endswith('theme.css') \
|
||||||
and not filename.endswith('.svg') \
|
and not filename.endswith('.svg') \
|
||||||
and not filename.startswith('browser'):
|
and not 'Ox.UI/png' in path:
|
||||||
ui_files['dev'].append(os.path.join(path.replace(source_path, ''), filename))
|
ui_files['dev'].append(os.path.join(path.replace(source_path, ''), filename))
|
||||||
if not '/js/' in path:
|
if not '/js/' in path:
|
||||||
ui_files['build'].append(os.path.join(path.replace(source_path, ''), filename))
|
ui_files['build'].append(os.path.join(path.replace(source_path, ''), filename))
|
||||||
|
|
Loading…
Reference in a new issue