Closed robertdenton closed 10 years ago
For audio files, I've reduced size: https://github.com/rgpages/lane-county-fair/issues/13
Might not hurt to play with image compression a tad? Or not worry about it for this project, but remember these issues for the next project that's similar. :+1:
Mobile file size research:
Here's what I've done in the past: https://github.com/mhulse/vogue
Probably other/better techniques … Like this one (maybe):
:+1:
Conclusion: Will try out SoundCloud player with image or other tried and true methods in the future. Don't want to completely rule out HTML5 video/audio and high-res pics but may not be the best in every situation.
In future projects may want to plan for mobile first with smaller files and move up from there. Possibly use above methods including picturefill or vogue.
package.json
"grunt-responsive-images": "~0"
under dependencies.npm install
grunt.loadNpmTasks('grunt-responsive-images');
to Tasks list.responsive_images: {
dev:{
options: {
sizes: [
{
name: 'small',
width: 400,
},
{
name: 'medium',
width: 800,
},
],
},
files: [
{
expand: true,
src: ['images/*.{gif, jpg, png}'],
cwd: './files/',
dest: '../dev/',
},
],
},
},
The Lane County Fair repo is weighing in at a hefty 65 MB and crashing mobile browsers especially Facebook and Twitter.
Need to look into displaying lower res photos (and maybe audio? don't know if that's possible...) on mobile.