function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
QuickDEVQuickDEV 

Html tag vs visualforce tag

Hi,

 

Just wondering is there any performance hit if I use Html tags instead of visualforce tags, when it can be done either way.

 

Thanks.

Best Answer chosen by Admin (Salesforce Developers) 
dragonmagicldragonmagicl

For my 2 cents, VF tags look remarkably like jsp tags (which they probably just are). Which means that when you use a VF tag, it will have to run through code to figure out what to output. Html tags would not be run through any code. So technically speaking, html tags would be faster. That being said, the VF tags allow you to keep that salesforce look and feel. Also, I sincerely doubt you would actually notice a performance difference (either way is fast) other than a few tens of milliseconds. The only problem with using VF tags is that sometimes they introduce undesirable html in your page that can make it difficult to get things in exactly the right spot. But, if your page is complex enough that using VF tags makes life difficult, it might in fact be more sensible to just use html.