I told you i removed all clanguages expect of one languages, because i only need one
the bbcode gets called 60 times in one thread. The thread is a summary of all functions i use in that language, so the file gets included 60 times in this thread and this totally slows down the whole browser while the site is getting loaded. And it takes about 20-30sec, and yes it is much data on one page.
Yes i know i could split it up, but this isn't good atm
is it possible to add that it only gets included one time and only if needed.
Maybe you know what cause the long load time, by the numbers the .js gets included or by the numbers the script has to be its job`?
i'll show you my bbcode
Code:
<script src="http://www.piroxbots.com/forum/scripts/shCore.js" type="text/javascript"></script>
<script src="http://www.piroxbots.com/forum/scripts/shAutoloader.js" type="text/javascript"></script>
<link type="text/css" rel="stylesheet" href="http://www.piroxbots.com/forum/styles/shCoreDefault.css"/>
<pre style="height: 132px;" class="brush: pt; toolbar: false; ">{param}</pre>
<script type="text/javascript">
function path()
{
var args = arguments,
result = []
;
for(var i = 0; i < args.length; i++)
result.push(args[i].replace('@', 'http://www.piroxbots.com/forum/scripts/'));
return result
};
SyntaxHighlighter.autoloader.apply(null, path(
'pt @shBrushAhk.js'
));
SyntaxHighlighter.config.stripBrs = true;
SyntaxHighlighter.all();
</script>
you see i only use shBrushAhk.js as language
btw thank you very very much for this cool mod, thats what i really needed!