<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Georgia;
        panose-1:2 4 5 2 5 4 5 2 3 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=FR-CA link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal>Hi list,<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>I just got an idea that I’m just throwing like that
that could help reduce the quantity of JS loaded on startup of geoprisma. Some
widgets are loaded in stand-by to be used (And probably won’t be used in
a typical session), we could change heavy widgets so it loads only when first
called by including the JS dynamically using this :<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>---------------------------------<o:p></o:p></p>
<p class=MsoNormal>var script = document.createElement('script');<o:p></o:p></p>
<p class=MsoNormal>script.src = "widget/foobar/dynaJS.js";<o:p></o:p></p>
<p class=MsoNormal>script.type = 'text/javascript';<o:p></o:p></p>
<p class=MsoNormal>script.defer = true;<o:p></o:p></p>
<p class=MsoNormal>var head = document.getElementsByTagName('head').item(0);<o:p></o:p></p>
<p class=MsoNormal>head.appendChild(script);<o:p></o:p></p>
<p class=MsoNormal>---------------------------------<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>I’m using this sort of dynamic script inclusion for
another project and so far it works with every browser we used. I think it
could help a little for a js hungry implementation.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Regards,<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"Georgia","serif"'>James
McGrath</span></b><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><br>
</span><span style='font-size:10.5pt;font-family:"Georgia","serif";color:#B6321D'>Programmeur/Analyste</span><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'> <br>
<br>
</span><span lang=EN-US style='font-size:10.0pt;font-family:"Georgia","serif"'><a
href="http://www.nippour.ca"><span lang=FR-CA style='color:#B6321D'>www.nippour.ca</span></a></span><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'><br>
</span><b><span style='font-size:9.0pt;font-family:"Georgia","serif"'>Tél.:
(418) 548-5556 poste 45 <br>
Téléc.: (418) 548-5445<br>
Sans frais : 1 800 776-0007</span></b><o:p></o:p></p>
<p class=MsoNormal><b><span style='font-size:8.5pt;font-family:"Arial","sans-serif"'>Jonquière
. 2655, bd. du Royaume, Bur. 600</span></b><o:p></o:p></p>
<p class=MsoNormal><span style='font-size:7.0pt;font-family:"Arial","sans-serif"'>Le
présent message (ainsi que ses éventuelles pièces jointes) peut contenir des informations
confidentielles. Étant établi à l'intention de son destinataire, son
utilisation ou sa diffusion non autorisée est interdite. Si vous recevez ce
message par erreur, merci de m'en aviser immédiatement.</span><o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</body>
</html>