Originally Posted by
yaritai
Please don't take my posts as a hit against you. That is not my intention. As I stated in the template post, my intention is to make aware to others who are using the switches whether for development purposes or for actual use for the end-customer that they may be wasting valuable develpment time to work out bugs that would not be in the correct files.
I will expand in more detail as the issue can be replicated and is seen on a demo site. This issue can be demonstrated on a live site in Anne's demo. I think it is safe to say that by using Anne's demo site, it will actually make you more comfortable that the coding has been done correct instead of using a demo site I have set up. If you go to Anne's Winchester demo, she has the switches present on the screen. You can tell that the code has been updated to your posts as it now pulls all the correct headers, codes and files.
The issue ONLY happens if you use the switches on a mobile or tablet. This does not happen if using a desktop as the switches will work just as expected. So if you were to land on a page in the winchester using a PHONE, it will pull the responsive_mobile.css. Click any switch to any view and the css will not change but stay static at repsonive_mobile.css. This same thing will happen if landing on a page initially with a TABLET where it will pull a static css of responsive_tablet.css.
Now why it doesn't do this for desktops is because the added code from 2.0 does not filter out desktops as it is the fallback in the if statements. And this fallback does not depend on the sessions set initially which all 3 devices will be blank at that point. But when changing views, it does NOT matter what the session value is as the 2.0 code will override any of the "or" statements as it will return true no matter what session display is set to.
So in the end, I think that most are testing on a desktop which is why no feedback for wrong files being pulled. But you can easily pull the view source on a tablet or mobile or use a agent switch add on. But either way, this issue can be replicated over and over.
Again, please don't take my post as a hit against you but rather trying to help others.
Bookmarks