[Xerte-dev] Re: Bootstrap Template not playing....

Julian Tenney Julian.Tenney at nottingham.ac.uk
Thu Apr 25 10:13:37 BST 2013


Will this do the same thing:

<script defer>(function(d, s, id) {var js, fjs = d.getElementsByTagName(s)[0];if (d.getElementById(id)) return;js = d.createElement(s); js.id = id;js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1";                   fjs.parentNode.insertBefore(js, fjs);                      }(document, 'script', 'facebook-jssdk'));</script>

From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
Sent: 25 April 2013 10:09
To: For Xerte technical developers
Subject: [Xerte-dev] Re: Bootstrap Template not playing....

Simple as that?

The add this one is a script tag, the facebook one is a bit more obfuscated

From: xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John
Sent: 25 April 2013 10:08
To: For Xerte technical developers
Subject: [Xerte-dev] Re: Bootstrap Template not playing....

Try adding defer into the offending scripts...

<script src="code.js" defer></script>

Regards,

John Smith
Learning Technologist
School of Health & Life Sciences
Glasgow Caledonian University

From: xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
Sent: Thursday, April 25, 2013 9:59 AM
To: For Xerte technical developers
Subject: [Xerte-dev] Re: Bootstrap Template not playing....

Typical. Of all days, today is the day the UoN network appears to have ground to a halt.

It raises a question though: the bootstrap template has the social sharing buttons from addThis at the bottom: when the page loads it needs to load scripts from addthis.com and facebook.com, and if they fail, the page doesn't load. I'll see if I can find a different approach to loading the scripts, but the internet isn't working at the moment. Dargh.


From: xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
Sent: 25 April 2013 09:21
To: For Xerte technical developers (xerte-dev at lists.nottingham.ac.uk<mailto:xerte-dev at lists.nottingham.ac.uk>)
Subject: [Xerte-dev] Bootstrap Template not playing....

Argh.

Something has changed since yesterday. I just did a clean xampp install, and the bootstrap template no longer previews, or plays.

What changed?


Glasgow Caledonian University is a registered Scottish charity, number SC021474

Winner: Times Higher Education's Widening Participation Initiative of the Year 2009 and Herald Society's Education Initiative of the Year 2009.
http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,6219,en.html

Winner: Times Higher Education's Outstanding Support for Early Career Researchers of the Year 2010, GCU as a lead with Universities Scotland partners.
http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,15691,en.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20130425/7cbe7d36/attachment.html>


More information about the Xerte-dev mailing list