Ox.UI: preload fewer images

This commit is contained in:
rlx 2013-07-29 23:25:40 +00:00
parent 85f513af45
commit cd0afb6be2

View file

@ -196,14 +196,14 @@ def build_oxjs(downloads=False, geo=False):
# locale json files are loaded lazily
# Ox.UI.css imports all other css files
# 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 '._' \
and not filename.endswith('~') \
and not 'jquery' in filename \
and not 'locale' in filename \
and not filename.endswith('theme.css') \
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))
if not '/js/' in path:
ui_files['build'].append(os.path.join(path.replace(source_path, ''), filename))