wordpress - What would be faster - plugin, html or shortcode? -


i'm curious if has experience refining wordpress site make fast page loading possible , approaches work better others.

for example, lets take adding social media buttons footer. fastest? biggest drag?

  1. plugin - there plugins, including genesis, allow user enter social media url , icon , link generate in widget. i'm wondering if big load in case css , files icons sets loaded instead of being used, plus additional plugin code being run.

  2. html in widget - simple thought code created , added text widget, images being stored in theme folders. can little risky because i've seen html code in widget blown out , clients can accidently edit wrong piece.

  3. html in theme - try avoid hardcoding elements client might want update, seems efficient, unless it's in widgetized area default, in case un-widgetize it?

  4. shortcode - hardcoded elements need used in couple of different places, thought creating shotcode option. know if shortcodes tend drag on site? of elements within shortcode file loaded if shortcode not called on page? i'm trying away unneeded css or scripts whenever necessary, don't know if shortcodes call piece being called. know?

thanks, information or advice appreciated.

personally use theme options page echos out html if admin fills out information. isn't fastest great management , simplicity.


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -