Jump to content

IE8 and Shiv


Recommended Posts

Hi All


Does anyone know if you can get Phaser games to work on IE8 using Shiv?


I have included script in my header

<!--[if lt IE 9]>        <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->

But i just get errors in console


SCRIPT445: Object doesn't support this action 
phaser.js, line 1010 character 1
SCRIPT5009: 'Phaser' is undefined 
index.html, line 30 character 5


Link to comment
Share on other sites

Well, there is a shim named excanvas, that works suprisingly well. Turns out that IE had something like the canvas tag since version 6 (yes, IE6) but nobody really used it since it was a properitary microsoft standard.


Well, the JS lib creates a bridge and creates a virtual canvas API that connects to VML and is able to do the most stuff you would be doing on a modern canvas element.


Give it a try - it might work - I used it in some web projects where graphs needed to be rendered and it worked fine. I sadly have no idea how it will work together with canvas and how it generally performs in games.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...