My interest in IE8 is only until I can use IE10 in my organisation, and I've been told it's coming Real Soon Now.
If we look at Issues 418 then a polyfill might be the solution. On the other hand Glimpse already has a dependency on JQuery for a lot of UI stuff. So I'm wondering if we shouldn't use it more in code so that an issue like the above can be handled by JQuery as well? JQuery has been built just to address those cross-browser issues, so why not make more use of it? It would at least solve a lot of javascript incompatibilities so that we can focus on CSS issues for other versions of IE (anybody knows of a "polyfill" for CSS by the way?)
Also I would suggest using a library like underscore.js which already has some solid ground. It already acts as a polyfill for a lot of array methods, because today issues like #399 and #412 are reporting a missing indexOf method, but tomorrow it might as well be lastIndexOf or another one and solving each of then when they occur and with a custom polyfill might not always be the best way, although it is pragmatic ;-)
Any thoughts?--
You received this message because you are subscribed to the Google Groups "GetGlimpse-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to getglimpse-de...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Agreed. It's one or two array functions (I have it working with one). No need for a framework - the framework in this case is Glimpse
Agreed. It's one or two array functions (I have it working with one). No need for a framework - the framework in this case is Glimpse
--
You received this message because you are subscribed to a topic in the Google Groups "GetGlimpse-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/getglimpse-dev/10RN1g4MCm0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to getglimpse-de...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "GetGlimpse-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to getglimpse-de...@googlegroups.com.
I see. The reason why I don't want the polyfill logic in the glimpse.util directly is because I don't want it to weigh down the rest of the client just to support IE8. If we put it into the glimpse.polyfill.js file, we can only include this file when we detect IE8. Does that make sense?
<!--[if IE 8]> <script src="polyfill.js"></script> <![endif]-->
<!--[if IE 8]> <script src='/Glimpse.axd?n=glimpse_polyfill&hash=ddce2d3f'></script> <![endif]-->
<script type='text/javascript' src='/Glimpse.axd?n=glimpse_client_part1&hash=ddce2d3f'></script>
But then you end up with 2 calls for the glimpse client library. Or maybe if you could have a reliable test for IE8 on the server side, then you could have a second generated glimpse.ie8.js file as a resource and include that one, then there is no need for a conditional comment anymore, we only need to generate a second glimpse.ie8.js file with the polyfill inside of it.Any other ideas?
CheersChristophe
--
You received this message because you are subscribed to a topic in the Google Groups "GetGlimpse-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/getglimpse-dev/10RN1g4MCm0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to getglimpse-de...@googlegroups.com.
Some missing functionality such as 'Array.indexOf', and 'JSON.stringify' can be patched with a local include file but its would be the responsibility of developers targeting older browsers to ensure this gets included, but this fits nicely into a glimpse.config file like the 'bundle.config' for ASP.NET MVC, and then include those files before the glimplse.core.js script tag.
For pollyfills you could always implement a common utility as suggests, but allot of it is already handled by the jQuery core such as $.inArray(data, collection), they are just not utilized. Everything else could be satisfied with a CDN if you don't want to inflate the Glimpse.js file with a lite AMD.
if (!JSON) {
// load JSON2.js from CDN
}
Perhaps default a 'glimpse.config' file that has expressions and references to CDNs which would also allow for mapping to local files. Kind of like the ScriptManager enhancements in 4.5
A little off topic, I'll put a feature request to define a global JavaScript variable on a page to STOP or TARGET glimpse rendering on that page/frame. I know framesets are so 1990-ish, but Glimpse act quite odd when there are multiple frames rendering.