Giter Site home page Giter Site logo

chat's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

chat's Issues

IE8+ Support

Would be nice to get this sample to work in IE out of the gates (even IE8+). I created a fork and was able to do it pretty quickly, by doing the following (even though these are loosely covered in ServiceStack docs, it might be nice to get the sample running without issues for everyone). Most of my clients require IE support, and many still require IE8+.

Could even just create a separate page in the demo (like default_ie8plus.cshtml).
Granted I was only using IE8, IE9, IE10 emulation in my tests, but without supporting these browsers, I would not have been able to convince my client that using this was a viable option, and that would have been a shame :-)

Here's what I did:

  1. Added bower and installed the following libraries:

    • jquery version 1.11.2: for lte IE9 support (instead of using jquery 2x)
    • console-polyfill: for lte IE9 support (the Yaffle polyfill throws exceptions in IE in certain cases without this)
    • es5-shim: for lte IE8 support
    • event-source-polyfill: Yaffle polyfill (for IE support)
  2. Added the script tags to the default.cshtml in the following order

<link href="/default.css" rel="stylesheet" />
<script src="/bower_components/jquery/dist/jquery.min.js"></script>
<!-- need the following item for lte IE9 -->
<script src="/bower_components/console-polyfill/index.js"></script>
<!-- need the following item for lte IE8 -->
<script src="/bower_components/es5-shim/es5-shim.min.js"></script>
<script src="/bower_components/event-source-polyfill/eventsource.min.js"></script>
<script src="/js/ss-utils.js"></script>
  1. Added the following config in the web.config to support running the app from Visual Studio without the horrible buffering delay:
<urlCompression doStaticCompression="true" doDynamicCompression="false" />

I believe that's it ... If you prefer to keep this out of the code-base, then maybe linking to a blog post with a working solution, or to a doc. Anyway, just a thought, feel free to close the issue.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.