Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Jun 2012
    Posts
    4
    Member #
    31944
    I've added a FlexSlider to a responsive website design. It's active for tablet and larger viewports but display:none for handheld devices. My question is, will these mobile devices still have the burden of downloading the relatively large (40Kb) flexslider.js file or is it only called if needed (i.e >768px)?

    http://streamlinemac.com/test29f2/index.html

    Cheers!

  2.  

  3. #2
    Senior Member Ronald Roe's Avatar
    Join Date
    Mar 2011
    Location
    Oklahoma City
    Posts
    3,141
    Member #
    27197
    Liked
    959 times
    It's downloaded, but not displayed. Wouldn't worry too much at 40Kb, though. Just make sure the images themselves are optimized.
    Ron Roe
    Web Developer
    "If every app were designed using the same design template, oh wait...Bootstrap."

  4. #3
    Junior Member
    Join Date
    Jun 2012
    Posts
    4
    Member #
    31944
    Thanks Ronald.

    Continued research supports your answer. Based on the options that look to be available I'm leaning towards simply mirroring the current site, remove some of the non mobile-friendly entities and publish a low-bandwidth version giving the visitor the choice. There does seem to be a handful of options for calling specific scripts based on viewport size or device type but these look to be inconsistent in determining which are which. Add to that the ever changing resolution for mobile devices along with the connectivity inconsistencies within device types and it seems optioning the visitor with high or low bandwidth versions is the way to go.

    I also learned that simply placing display:none in a CSS media query does not prevent site properties listed in the HTML mark-up from being downloaded (there are some options but they are just as spotty as mentioned above). This is another very good reason for two site versions.

    Again, appreciate your reply!

  5. #4
    Senior Member Ronald Roe's Avatar
    Join Date
    Mar 2011
    Location
    Oklahoma City
    Posts
    3,141
    Member #
    27197
    Liked
    959 times
    You do what works for you, but I'd maybe look into using a much smaller javascript to conditionally load the elements based on viewport size.
    Ron Roe
    Web Developer
    "If every app were designed using the same design template, oh wait...Bootstrap."


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 05:16 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com