internet-explorer-8


Handlebars is undefined in IE8 with requireJS


I'm using handlebars v3.0.0 (non-AMD) and requireJS with the following configuration:
require.config({
deps: [ 'main' ],
paths: {
'handlebars' : 'lib/handlebars'
},
shim: {
handlebars: {
exports: 'Handlebars'
}
}
});
And calling for it like this:
define( [
'handlebars'
],
function( Handlebars ){
'use strict';
var HBS = Handlebars.default;
...
This works on all modern browsers, IE9, IE10 & IE11 but not in IE8.
Handlebars is undefined in IE8 as shown below:
I'm using the non AMD version (hence I'm shim in it), actually I copied and pasted the code this CDN link throws:
<script src="//cdnjs.cloudflare.com/ajax/libs/handlebars.js/3.0.0/handlebars.js"></script>
NOTE-A: Handlebars works if I include the above script tag in my index page instead of using it with requireJS.
NOTE-B: Already tried using the AMD version, same thing.
NOTE-C: I'm using a virtual machine for IE8 testing.
NOTE-D: IE8 Document Mode is IE8 Standards
Any help with this will be really appreciated.

Related Links

How do I get modernizr to work with respond.js?
IE changes the size of my background image
Information Bar appears in IE8 while downloading
JQGrid IE8 Error: “12030 Unknown”
watir - file_field not working when running on server
Processing script in IE8
Shadow & Opacity In css3 For IE8 (Not Match)
IE8 Cufon.replace Text Shadow Issue
IE8 z-index glitch - cant seem to find a working solution
Selenium 2 WebDriver implementation not handling expandable menus correctly
Issue loading XML + Flash Player 10.0.45.2 on Windows XP SP3 with IE8
explorer not showing xml
Javascript document.form.submit() not working with Firefox 4.0 and IE8
Problem With IE 8
DataTable control: Zebra striping not displaying on IE8
jQuery Tools Overlay invokes vertical Scrollbar in IE

Categories

HOME
google-apps-script
sas
ssas-2012
voip
facebook-graph-api
jasmine
visualization
schemacrawler
docker-windows
avl-tree
requirejs
shipping
octopus-deploy
wicket
mongodb-query
gwtp
x-frame-options
grub2
jpeg2000
plsqldeveloper
logarithm
tfs2013
yosys
non-deterministic
ui5
winscp
encase
backup-strategies
freebase
pljson
web-audio-api
fabric-digits
socketpair
axis-labels
poco-libraries
sql-like
meta-raspberrypi
infusionsoft
twiki
common.logging
socketscan
matlab-cvst
rich-text-editor
azure-availability-set
ti-basic
livefyre
ticker
rpostgresql
tofixed
butterknife
selenium-firefoxdriver
date-range
qos
bettercms
vici
xib
dts
spoofing
django-filer
linkageerror
spatial-query
emokit
faraday
distribute
supportmapfragment
handlebars.java
difference
intellitest
abas
urn
web-component-tester
git-checkout
es2015
adodb
named-ranges
line-numbers
temp-tables
kendo-mvvm
libssh2
ember-addon
yahoo-boss-api
neoload
anjuta
fogbugz-api
apache2.2
grunt-contrib-compass
fortran77
socketstream
static-variables
pstree
legacy-code
z-machine
point-sprites
flexicious
surf
dashcode
audiostreamer
task-management
file-encodings
google-instant
visual-c++-2008-express
lazy-c++
nt4
usergroups
dotproject

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App