Very Slow Loading of External Text from JSON Feed.
Can Anyone help me speed this up. Starting to think it is the Nature of Jquery and not Animate.
var tl = this
$.get("https://give.benevolentenabler.com/api/custom/totals/1", function (data) {
var txt = tl.theTime;
var fill = canvas.getContext("2d").createLinearGradient(7, 0, 0, txt.getBounds().height);
fill.addColorStop(0, "#FFFFFF");
//fill.addColorStop(0.5, "#0F0");
fill.addColorStop(1, "#ffd800");
txt.color = fill;
txt.text = "$" + data.raised;
if (!data.raised.length) {
tl.gotoAndPlay('Slide2');
}
})
.fail(function (e) {
alert("BROKEN");
tl.gotoAndStop('Slide2');
});
tl.stop();
