jquery - How to preload javascript, images, css and/or misc files? -
currently i'm working on huge project involves thousands of lines of css, javascript , bunch of images. minifying css style sheets , javascript files added compression helps lot, still isn't perfect.
for preloading images in css stylesheets, have found bunch of plugins, including here on stackoverflow. however, since there lot of jquery , javascript libraries - preloading css images in stylesheets doesn't cause @ all. there way preload css files themselves, along images found in files, , javascript libraries in 1 go? use such feature after confirming user credentials, , after preloading required content redirecting users inner content.
also: provide array of files needed preloading, without having javascript parse files.
you might take @ using appcache cache resources. speed things modern browsers, though won't older ones. there's tutorial here.
i'm guessing of page size comes images. might try spriting images , using gzip, supported older browsers (ie 5.5+ example).
Comments
Post a Comment