<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Ajax Edit Comments Support Forums &#187; Topic: Java Script Code in Header</title>
		<link>http://www.ajaxeditcomments.com/forums/topic/java-script-code-in-header</link>
		<description>Ajax Edit Comments Support Forums &raquo; Topic: Java Script Code in Header</description>
		<language>en-US</language>
		<pubDate>Fri, 10 Sep 2010 16:33:22 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.ajaxeditcomments.com/forums/search.php</link>
		</textInput>
		<atom:link href="http://www.ajaxeditcomments.com/forums/rss/topic/java-script-code-in-header" rel="self" type="application/rss+xml" />

		<item>
			<title>Ronald Huereca on "Java Script Code in Header"</title>
			<link>http://www.ajaxeditcomments.com/forums/topic/java-script-code-in-header#post-196</link>
			<pubDate>Sun, 07 Mar 2010 21:16:12 +0000</pubDate>
			<dc:creator>Ronald Huereca</dc:creator>
			<guid isPermaLink="false">196@http://www.ajaxeditcomments.com/forums/</guid>
			<description>&#60;p&#62;@alborzf,&#60;/p&#62;
&#60;p&#62;That's not possible since the variables are localized (i.e., generated dynamically).  Loading the variables in a separate JavaScript file would require a PHP extension, which would require the loading of the WordPress environment in order to get the dynamic variables.  This would cause even more load on your server.&#60;/p&#62;
&#60;p&#62;Using localized variables is common practice with WordPress so that users with various translations can get accurately translated strings.  The default behavior for WordPress is to spit out each localized string in a new line, but as stated earlier, 4.0 Beta 3 loads all this strings on just one line.&#60;/p&#62;
&#60;p&#62;It may appear these variables never change, but they do depending on the language used on your blog, and also some of the admin panel settings you choose.  Loading these strings on one line is way more efficient than loading them in a separate JS file (which would require yet another HTTP request).
&#60;/p&#62;</description>
		</item>
		<item>
			<title>alborzf on "Java Script Code in Header"</title>
			<link>http://www.ajaxeditcomments.com/forums/topic/java-script-code-in-header#post-194</link>
			<pubDate>Sun, 07 Mar 2010 20:38:39 +0000</pubDate>
			<dc:creator>alborzf</dc:creator>
			<guid isPermaLink="false">194@http://www.ajaxeditcomments.com/forums/</guid>
			<description>&#60;p&#62;Hi there,&#60;br /&#62;
As these variables never change for us, is there a way to spit the code out into a seperate .js file which can then be called instead? and then I can remove the call function from the script?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Ronald Huereca on "Java Script Code in Header"</title>
			<link>http://www.ajaxeditcomments.com/forums/topic/java-script-code-in-header#post-192</link>
			<pubDate>Sun, 07 Mar 2010 19:37:37 +0000</pubDate>
			<dc:creator>Ronald Huereca</dc:creator>
			<guid isPermaLink="false">192@http://www.ajaxeditcomments.com/forums/</guid>
			<description>&#60;p&#62;The code is required for JavaScript localization.&#60;/p&#62;
&#60;p&#62;AEC 4.0 Beta 3 skips the newlines and has the code on just one line instead of several.  This should help with the SEO problems.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>alborzf on "Java Script Code in Header"</title>
			<link>http://www.ajaxeditcomments.com/forums/topic/java-script-code-in-header#post-191</link>
			<pubDate>Sun, 07 Mar 2010 19:36:05 +0000</pubDate>
			<dc:creator>alborzf</dc:creator>
			<guid isPermaLink="false">191@http://www.ajaxeditcomments.com/forums/</guid>
			<description>&#60;p&#62;Dear Developer,&#60;/p&#62;
&#60;p&#62;Is it possible to better manage the Javascript in the header.&#60;/p&#62;
&#60;p&#62;Currently your plugin is spitting out:&#60;br /&#62;
&#60;code&#62;&#38;lt;script type='text/javascript' src='http://www.caradvice.com.au/wp-content/plugins/wp-ajax-edit-comments/js/jquery.colorbox-min.js?ver=2.9.1'&#38;gt;&#38;lt;/script&#38;gt;&#60;br /&#62;
&#38;lt;script type='text/javascript'&#38;gt;&#60;br /&#62;
/* &#38;lt;![CDATA[ */&#60;br /&#62;
var wpajaxeditcomments = {&#60;br /&#62;
	AEC_PluginUrl: &#34;http://www.caradvice.com.au/wp-content/plugins/wp-ajax-edit-comments&#34;,&#60;br /&#62;
	AEC_CanScroll: &#34;false&#34;,&#60;br /&#62;
	AEC_Minutes: &#34;minutes&#34;,&#60;br /&#62;
	AEC_Minute: &#34;minute&#34;,&#60;br /&#62;
	AEC_And: &#34;and&#34;,&#60;br /&#62;
	AEC_Seconds: &#34;seconds&#34;,&#60;br /&#62;
	AEC_Second: &#34;second&#34;,&#60;br /&#62;
	AEC_Moderation: &#34;Mark for Moderation?&#34;,&#60;br /&#62;
	AEC_Approve: &#34;Approve Comment?&#34;,&#60;br /&#62;
	AEC_Spam: &#34;Mark as Spam?&#34;,&#60;br /&#62;
	AEC_Delete: &#34;Delete this comment?&#34;,&#60;br /&#62;
	AEC_Anon: &#34;Anonymous&#34;,&#60;br /&#62;
	AEC_Loading: &#34;Loading...&#34;,&#60;br /&#62;
	AEC_Ready: &#34;Ready&#34;,&#60;br /&#62;
	AEC_Sending: &#34;Sending...&#34;,&#60;br /&#62;
	AEC_Sent: &#34;Message Sent&#34;,&#60;br /&#62;
	AEC_LoadSuccessful: &#34;Comment Loaded Successfully&#34;,&#60;br /&#62;
	AEC_Saving: &#34;Saving...&#34;,&#60;br /&#62;
	AEC_Blacklisting: &#34;Blacklisting...&#34;,&#60;br /&#62;
	AEC_Saved: &#34;Comment Successfully Saved&#34;,&#60;br /&#62;
	AEC_Delink: &#34;De-link Successful&#34;,&#60;br /&#62;
	AEC_MoreOptions: &#34;More Options&#34;,&#60;br /&#62;
	AEC_LessOptions: &#34;Less Options&#34;,&#60;br /&#62;
	AEC_UseRTL: &#34;false&#34;,&#60;br /&#62;
	AEC_RequestDeletionSuccess: &#34;Request has been sent successfully&#34;,&#60;br /&#62;
	AEC_RequestError: &#34;Error sending request&#34;,&#60;br /&#62;
	AEC_approving: &#34;Approving...&#34;,&#60;br /&#62;
	AEC_delinking: &#34;De-linking...&#34;,&#60;br /&#62;
	AEC_moderating: &#34;Moderating...&#34;,&#60;br /&#62;
	AEC_spamming: &#34;Spamming...&#34;,&#60;br /&#62;
	AEC_deleting: &#34;Deleting...&#34;,&#60;br /&#62;
	AEC_restoring: &#34;Restoring...&#34;,&#60;br /&#62;
	AEC_undoing: &#34;Undoing...&#34;,&#60;br /&#62;
	AEC_undosuccess: &#34;Undo Successful&#34;,&#60;br /&#62;
	AEC_permdelete: &#34;Comment Deleted Permanently&#34;,&#60;br /&#62;
	AEC_fieldsrequired: &#34;Input Fields are Required&#34;,&#60;br /&#62;
	AEC_emailaddresserror: &#34;E-mail Address is Invalid&#34;&#60;br /&#62;
};&#60;br /&#62;
/* ]]&#38;gt; */&#60;br /&#62;
&#38;lt;/script&#38;gt;&#60;br /&#62;
&#38;lt;script type='text/javascript' src='http://www.caradvice.com.au/wp-content/plugins/wp-ajax-edit-comments/js/wp-ajax-edit-comments.min.js?ver=2.3'&#38;gt;&#38;lt;/script&#38;gt; &#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Is it possible to have all those variables declared NOT in the header file? It's making the source code very untidy and unfortunately bad for SEO.&#60;/p&#62;
&#60;p&#62;Regards,
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
