Title: cjoseph's Replies | WordPress.org

---

# cjoseph

  [  ](https://wordpress.org/support/users/cjoseph/)

 *   [Profile](https://wordpress.org/support/users/cjoseph/)
 *   [Topics Started](https://wordpress.org/support/users/cjoseph/topics/)
 *   [Replies Created](https://wordpress.org/support/users/cjoseph/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/cjoseph/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/cjoseph/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/cjoseph/engagements/)
 *   [Favorites](https://wordpress.org/support/users/cjoseph/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Add script and css to header from withing shortcode](https://wordpress.org/support/topic/add-script-and-css-to-header-from-withing-shortcode/)
 *  [cjoseph](https://wordpress.org/support/users/cjoseph/)
 * (@cjoseph)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/add-script-and-css-to-header-from-withing-shortcode/#post-1995052)
 * Hi,
    in the case of javascript it will be a better solution to load it in the
   footer. And based in a shortcode you will not be able to load anything in the
   header because the page will be processed in the following order: 1.header 2.
   body(here will be the shortcode) 3.footer So you when you will trigger the action
   by shortcode, the header it will be already processed. If you are interested 
   study this page : [http://scribu.net/wordpress/optimal-script-loading.html](http://scribu.net/wordpress/optimal-script-loading.html)
   and you can check out my plugin based on that page. The plugin name is: activator.
   About CSS cant tell you much, currently I do some studies about it. best regards
   cjoseph

Viewing 1 replies (of 1 total)