Wordpress LScache Plugin: change postion of inline lazy load js
Last Updated on: Wed, 15 Apr 2026 00:00:02 Hi How can i change postion of inline lazy load js in html (default is footer) i want put it in header. best regards This topic was modified 1 year, 11 months ago by evil. Hi, unfortunately there is no native way to change it. you can manually change the code here but if you do that, each time plugin upgrades, the change will be undo and you need to do it again. and may I know what is the reason you want to put it in header ? Best regards, Thank you for your immediate response. It would have been better if a hooks was available i think if inline js load after it will have a better chance of loading the first photo quickly that make LCP in google speed because of lazyload.(am i wrong?) https://wordpress.org/support/topic/disable-lazy-load-image-for-the-first-image-above-the-fold-2/ Hi, hmmmm, from what I understand about LCP How is an elements size determined? # The size of the element reported for Largest Contentful Paint is typically the size thats visible to the user within the viewport. I think it doesnt matter if lazyload library is in footer or header or in the middle of body , it still requires it to load images on viewport (am I wrong ?) Best regards,
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference