Title: Preload function
Last modified: October 6, 2025

---

# Preload function

 *  Resolved [sacconi](https://wordpress.org/support/users/sacconi/)
 * (@sacconi)
 * [7 months, 1 week ago](https://wordpress.org/support/topic/preload-function/)
 * I need to put in the sticky header something like
 *     ```wp-block-code
       <link rel="preload" as="image" href="https://test.sacconicase.com/wp-content/uploads/2023/07/case-vacanza-appartamenti-affitto-250.jpg">
       ```
   
 * because everytime I change of page the images in the header open too late, how
   can I do it?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fpreload-function%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [sacconi](https://wordpress.org/support/users/sacconi/)
 * (@sacconi)
 * [7 months, 1 week ago](https://wordpress.org/support/topic/preload-function/#post-18677014)
 * In which of your file and in which position can I put this above preload html
   snippet? I have a logo image in the free version
 *  Plugin Author [Rui Guerreiro](https://wordpress.org/support/users/takanakui/)
 * (@takanakui)
 * [7 months, 1 week ago](https://wordpress.org/support/topic/preload-function/#post-18677080)
 * Hi [@sacconi](https://wordpress.org/support/users/sacconi/),
 * This is not related with WP Mobile menu.
 * You can achieve that using the wp_head hook.
 * Check it here.
 * [https://developer.wordpress.org/reference/hooks/wp_head/](https://developer.wordpress.org/reference/hooks/wp_head/)
 *  Thread Starter [sacconi](https://wordpress.org/support/users/sacconi/)
 * (@sacconi)
 * [7 months, 1 week ago](https://wordpress.org/support/topic/preload-function/#post-18677113)
 * My above code works for my desktop pc, I simply put it in the tag `<head> ` in
   header.php, I suppose I can do the same when the plug in runs, I just need to
   know in which file I can repeat “this “trick”
 * maybe inside the DIV mob.menu-logo-holder ? it’s just HTML

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Preload function’ is closed to new replies.

 * ![](https://ps.w.org/mobile-menu/assets/icon-128x128.png?rev=1890426)
 * [WP Mobile Menu - The Mobile-Friendly Responsive Menu](https://wordpress.org/plugins/mobile-menu/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mobile-menu/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mobile-menu/)
 * [Active Topics](https://wordpress.org/support/plugin/mobile-menu/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mobile-menu/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mobile-menu/reviews/)

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)

 * 3 replies
 * 2 participants
 * Last reply from: [sacconi](https://wordpress.org/support/users/sacconi/)
 * Last activity: [7 months, 1 week ago](https://wordpress.org/support/topic/preload-function/#post-18677113)
 * Status: resolved