<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : Load Chili files on demand</title>
		<link>https://www.cotonti.com</link>
		<description>Son konu mesajları</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Wed, 08 Apr 2026 03:03:55 -0000</pubDate>

		<item>
			<title>Orkan</title>
			<description><![CDATA[Well, a function called register() is the key here, eg:<br />
<div class="highlight"><pre class="js">$.plugin.register(&quot;jquery.chili&quot;, {fn: &quot;chili&quot;});</pre></div>
when you call $.chili() somewhere on the page, it will load jquery.chili.js file first and then proceed with chili() as usual. Very smart :) <br />
<br />
Additionally, you can use two callbacks, onBefore and onAfter, for example to load additional files like style sheets, etc...<br />
<br />
see chili.header.php in my rar for more info...]]></description>
			<pubDate>Çrş, 17 Eyl 2008 04:24:33 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=399&d=0#post1084]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[Sounds good, but how do we let it know it should load specific plugins on specific pages?]]></description>
			<pubDate>Çrş, 17 Eyl 2008 00:45:32 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=399&d=0#post1074]]></link>
		</item>
		<item>
			<title>Orkan</title>
			<description><![CDATA[Hi :)<br />
Im back with an incredible solution how to load not only Chili but all jQuery plugins on demand. This is the plugin Im referring to: <a href="http://plugins.jquery.com/project/Plugin" rel="nofollow">http://plugins.jquery.com/project/Plugin</a><br />
<br />
I've made some tests with Chili and it works like a dream!<br />
Heres the test page you can check out: <br />
<strong><a href="https://www.cotonti.com/6-jquery_lazy_load.rar">6-jquery_lazy_load.rar</a></strong><br />
(http://www.cotonti.com/datas/users/6-jquery_lazy_load.rar)<br />
<br />
LOL, whats wrong with this bbcode parser?<br />
<a href="http://www.cotonti.com/datas/users/6-jquery_lazy_load.rar">http://www.cotonti.com/datas/users/6-jquery_lazy_load.rar</a><br />
<br />
Also I've made a decision to change the directory structure a bit for javascript files.<br />
You can see my idea in rar file.<br />
<br />
mainly <strong>&quot;dev&quot;</strong> folder is for <span style="text-decoration:underline">uncompressed</span> javascript files - good for debugging or svn diff<br />
and <strong>&quot;prod&quot;</strong> is for production<br />
<br />
This should go to header.tpl<br />
<div class="highlight"><pre class="html">&lt;script type=&quot;text/javascript&quot;&gt;
var jQueryBase = location.host.match(/localhost/i) ? &quot;./javascript/jquery/dev/&quot; : &quot;./javascript/jquery/prod/&quot;;
document.write(unescape(&quot;%3Cscript type='text/javascript' src='https://www.cotonti.com/&quot; + jQueryBase + &quot;jquery.js'%3E%3C/script%3E&quot;));
document.write(unescape(&quot;%3Cscript type='text/javascript' src='https://www.cotonti.com/&quot; + jQueryBase + &quot;jquery.plugin.js'%3E%3C/script%3E&quot;));
&lt;/script&gt;

&lt;script type=&quot;text/javascript&quot;&gt;
$.plugin.defaults.base = jQueryBase;
$.plugin.defaults.ext = &quot;.js&quot;;
&lt;/script&gt;</pre></div>
<br />
PS. use &quot;view plain&quot; button to see the correct code, because something wrong with Chili here (repeated lines 3 &amp; 4)<br />
Again problem in html.js - with recipes.js everything works as expected.]]></description>
			<pubDate>Sal, 16 Eyl 2008 19:26:41 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=399&d=0#post1071]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[Well, could somehow insert those embeds into document body when highlight appears for the first time in the document, but that's quite tricky and may produce non XHTML compliant output.<br />
<br />
We will return to this problem after we find the best way to control header part from the body code (like plugins).]]></description>
			<pubDate>Çrş, 03 Eyl 2008 23:21:45 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=399&d=0#post887]]></link>
		</item>
		<item>
			<title>Kilandor</title>
			<description><![CDATA[Yea I think it could be possible, just have it $highlight_found = true; or something like that.]]></description>
			<pubDate>Çrş, 03 Eyl 2008 23:20:04 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=399&d=0#post886]]></link>
		</item>
		<item>
			<title>Orkan</title>
			<description><![CDATA[Its not always needed to include all (four) Chili JS/CSS files at startup.<br />
We could load them on demand in footer hook. <br />
All we need to know, is an information that [ highlight] bbcode has been parsed at least once...<br />
<br />
Is this possible to retrieve such information from Cotonti parser?]]></description>
			<pubDate>Çrş, 03 Eyl 2008 23:04:07 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=399&d=0#post881]]></link>
		</item>
	</channel>
</rss>