confidence123 Posted November 24, 2014 Share Posted November 24, 2014 I want to use small code for designing website responsive, so that website load time could not exceed. Link to comment Share on other sites More sharing options...
niche Posted November 24, 2014 Share Posted November 24, 2014 what do you want to happen when load time takes too long? Link to comment Share on other sites More sharing options...
davej Posted November 24, 2014 Share Posted November 24, 2014 I guess you would use @media blocks to restrict the number and choice of images on each page and style most images to display:none. http://www.w3schools.com/cssref/css3_pr_mediaquery.asp However this may not work, or you may need to create parent divs around the images to get the browser to not load the images... http://stackoverflow.com/questions/12158540/does-displaynone-prevent-an-image-from-loading and http://timkadlec.com/2012/04/media-query-asset-downloading-results/ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now