Greetings! I am currently utilizing Backbone.js and require.js for my application, experiencing difficulty with template rendering in Firefox. Interestingly, it works without issues in both Chrome and IE.
Allow me to present the code responsible for rendering:
define([
'jquery',
'underscore',
'backbone',
'text!templates/home/main.html'
], function ($, _, Backbone, mainHomeTemplate) {
var mainHomeView = Backbone.View.extend({
el: $("#page"),
render: function () {
// console.log("loading template");
this.el.html(mainHomeTemplate);
}
});
return new mainHomeView;
});
If anyone could shed some light on what might be causing the problem, I would greatly appreciate it.
Thank you in advance!