Wednesday, March 11, 2015

Changes 3/10/15 - Javascript Defer Problems and Videoconferencing

In LibriFox, we've been using the defer attribute like so: <script type="text/javascript" src="js/app.js" defer></script>. The defer attribute essentially tells the browser to wait until the page has been loaded before running the script (w3c link).

Today, we removed the attribute to see what would happen. The error output for the script became much more verbose, although I think it was just finding errors that were due to the script no longer loading after the page. However, we started getting strange errors like not well formed, and another about missing closing </link> tags, even though by HTML5 standards <link> tags don't require a closing tag.

I think it makes sense to leave defer on, because I don't think we've been using $(document).ready or any similar method to stop code from loading before the page.

We also videoconferenced with Marcia from Firefox, and were able to ask some of the questions we had about our project, like which IRC channels we should be asking questions in.

1 comment:

  1. I'm hoping we will be able to get Kumar, who volunteered on the mailing list, to look over your blog posts and join in this conversation. Let's see if we can make that happen next week.

    ReplyDelete