<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<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>Gravity Support Forums Topic: Speed improvement in gform_tooltip() when using WPML (or other)</title>
		<link>https://legacy.forums.gravityhelp.com/topic/speed-improvement-in-gform_tooltip-when-using-wpml-or-other</link>
		<description>Gravity Support Forums Topic: Speed improvement in gform_tooltip() when using WPML (or other)</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 15:28:34 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/speed-improvement-in-gform_tooltip-when-using-wpml-or-other" rel="self" type="application/rss+xml" />

		<item>
			<title>Alex Cancado on "Speed improvement in gform_tooltip() when using WPML (or other)"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/speed-improvement-in-gform_tooltip-when-using-wpml-or-other#post-337226</link>
			<pubDate>Fri, 21 Jun 2013 18:11:02 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">337226@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks for the troubleshooting and recommendation. I will be looking at getting that implemented.&#60;br /&#62;
Cheers.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Speed improvement in gform_tooltip() when using WPML (or other)"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/speed-improvement-in-gform_tooltip-when-using-wpml-or-other#post-334842</link>
			<pubDate>Thu, 20 Jun 2013 16:07:37 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">334842@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'll pass this on to our developers. Thank you very much.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sboisvert@bryxal.ca on "Speed improvement in gform_tooltip() when using WPML (or other)"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/speed-improvement-in-gform_tooltip-when-using-wpml-or-other#post-332258</link>
			<pubDate>Wed, 19 Jun 2013 12:21:01 +0000</pubDate>
			<dc:creator>sboisvert@bryxal.ca</dc:creator>
			<guid isPermaLink="false">332258@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Good day,&#60;/p&#62;
&#60;p&#62;When using a translation plugin such as WPML there can be quite some overhead on gform_tooltip. See &#60;a href=&#34;https://trello-attachments.s3.amazonaws.com/4f215e75640b8380712c04c9/515b56167b831c1549002966/bfb31dbebfe357cd95bac62989435044/upload_2013-06-19_at_12.15.32_pm.png&#34; rel=&#34;nofollow&#34;&#62;https://trello-attachments.s3.amazonaws.com/4f215e75640b8380712c04c9/515b56167b831c1549002966/bfb31dbebfe357cd95bac62989435044/upload_2013-06-19_at_12.15.32_pm.png&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Since the function calls an array of strings which all the translations are fetched every function call.&#60;/p&#62;
&#60;p&#62;If the variable $gf_tooltips is declared outside the scope of the function as a global variable and then referenced inside the function the translations are only fetched once.&#60;/p&#62;
&#60;p&#62;Here is a link to an SVN patch against version 1.7.5&#60;br /&#62;
&#60;a href=&#34;https://trello-attachments.s3.amazonaws.com/4f215e75640b8380712c04c9/515b56167b831c1549002966/68ca5ae9c21f5b91b2e5c6c1b01aadd1/tooltips.php.patch&#34; rel=&#34;nofollow&#34;&#62;https://trello-attachments.s3.amazonaws.com/4f215e75640b8380712c04c9/515b56167b831c1549002966/68ca5ae9c21f5b91b2e5c6c1b01aadd1/tooltips.php.patch&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I'm sure there are also other ways this could be made more efficient by making this into a singleton or such, but this seemed like the simplest way to accomplish the biggest speed improvement.&#60;/p&#62;
&#60;p&#62;Thank you,
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
