<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<STYLE>.hmmessage P {
        PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px
}
BODY.hmmessage {
        FONT-SIZE: 10pt; FONT-FAMILY: Verdana
}
</STYLE>
<META content="MSHTML 6.00.6000.16890" name=GENERATOR></HEAD>
<BODY class=hmmessage>
<DIV dir=ltr align=left><SPAN class=572255316-18052010><FONT face=Arial
color=#000080>One option would be that you cerate a slimmed down , custom
version of Openlayers that contains only the needed functionality (and
libraries) and then replace the default OL with it. There are some posts
around the web on how to do that depending on your
background:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=572255316-18052010><FONT face=Arial
color=#000080></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><FONT color=#000080><SPAN class=572255316-18052010><FONT
face=Arial>User Interface web based tool to cerate a custom Openlayers.js:
</FONT></SPAN><SPAN class=572255316-18052010><FONT face=Arial><A
href="http://openlayerer.appspot.com/">http://openlayerer.appspot.com/</A></FONT></SPAN></FONT></DIV>
<DIV dir=ltr align=left><SPAN class=572255316-18052010><FONT face=Arial><FONT
color=#000080>Good Blog post: </FONT><A
href="http://linfiniti.com/2010/05/slimming-down-openlayers/"><FONT
color=#000080>http://linfiniti.com/2010/05/slimming-down-openlayers/</FONT></A></FONT></SPAN></DIV>
<DIV dir=ltr align=left><FONT color=#000080><SPAN
class=572255316-18052010></SPAN><SPAN class=572255316-18052010></SPAN><SPAN
class=572255316-18052010><FONT face=Arial></FONT></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><SPAN class=572255316-18052010><FONT face=Arial
color=#000080>Hopefully this helps.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=572255316-18052010><FONT face=Arial
color=#000080>Cheers</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=572255316-18052010><FONT face=Arial
color=#000080>Karsten</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff></FONT> </DIV>
<P class=MsoNormal align=left><FONT size=2><SPAN
style="FONT-SIZE: 11pt; FONT-FAMILY: Verdana">Karsten
Vennemann<BR></SPAN></FONT><FONT size=1><SPAN
style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana">Principal<BR><BR></SPAN></FONT><FONT
color=#003264><FONT size=1><SPAN
style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana">Terra GIS
LTD<BR></SPAN></FONT></FONT><?xml:namespace prefix = st1 ns =
"urn:schemas-microsoft-com:office:smarttags" /><st1:place w:st="on"><st1:City
w:st="on"><FONT color=#003264 size=1><SPAN
style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana">Seattle</SPAN></FONT></st1:City><FONT
size=1><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana"><FONT
color=#003264>, <st1:State w:st="on">WA</st1:State>
</FONT><st1:PostalCode w:st="on"><FONT
color=#003264>98112<BR></FONT></st1:PostalCode></SPAN></FONT></st1:place><st1:country-region
w:st="on"><st1:place w:st="on"><FONT color=#003264 size=1><SPAN
style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana">USA</SPAN></FONT></st1:place></st1:country-region><FONT
color=#003264 size=1><SPAN
style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana"> <BR><A
href="http://www.terragis.net/">www.terragis.net</A></SPAN></FONT></P>
<DIV><FONT face=Arial color=#0000ff></FONT> </DIV><BR>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> ms4w-users-bounces@lists.maptools.org
[mailto:ms4w-users-bounces@lists.maptools.org] <B>On Behalf Of </B>Orlando
Solarte<BR><B>Sent:</B> Tuesday, May 18, 2010 09:41<BR><B>To:</B>
ms4w<BR><B>Subject:</B> [MS4W-Users] How to Load only Necesary Javascript on
OpenLayers<BR></FONT><BR></DIV>
<DIV></DIV><BR>
<STYLE>.ExternalClass .ecxhmmessage P {
        PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px
}
.ExternalClass BODY.ecxhmmessage {
        FONT-SIZE: 10pt; FONT-FAMILY: Verdana
}
</STYLE>
Hi!<BR> <BR>I am developing GIS aplication using Open layers. I have a
map wit one Google's layer and WFS Layer. <BR> <BR>I am having troubles,
because load all extensions OpenLayers (WMSCapabilities.js, Text.js,
GeoJSason.js, ectetera, gpx.js, etcera), so <BR>my page load is aprox
6Megabytes!. I am not use all extensions, only
WFS.js.<BR> <BR>So, Is there some way to load only necesary javascript?,
in this case only WFS.js, OpenLayers.j.<BR> <BR>I hope understand
me.<BR> <BR>Sorry my bad english, is not my first
language.<BR> <BR>Thanks!<BR><BR>
<HR>
Discover the new Windows Vista <A
href="http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE"
target=_new>Learn more!</A> </BLOCKQUOTE></BODY></HTML>