Facebook Pixel ? Lazy Loading Exclude Image




Wordpress LScache Plugin: Facebook Pixel ? Lazy Loading Exclude Image

Last Updated on: Wed, 15 Apr 2026 00:00:02
As the Facebook pixel has a 1?1 img src attached to it when adding a pixel to the page and then using the Litespeed lazy load images, Litespeed is adding the lazy load to that URL even though theres nothing there img data-lazyloaded=1 src=data:image/gif base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7 height=1 width=1 style=display:none data-src=https://www.facebook.com/tr?id=1 Therefore is there anyway to exclude this from being lazy loaded as it doesnt need to be. Tried looking in the exclude tab but nothing I add seems to work. This topic was modified 1 year, 8 months ago by matt-thomas-photography. Hi, Could you please provide the report number ? you can get it in toolbox -> report -> click send to LiteSpeed Best regards, Sent Report number: WYEIIELG Report date: 03/12/2021 16:36:12 yeah weird ?. could you please try add facebook into lazyload exclude ? Just the word Facebook into the media excludes section? yes That seems to have worked! Who knew just a simple title would be all it needed Thanks for the quick reply and solve Glad that qtwrk made it work. Good job. This is a temporary solution. The Facebook pixel is in noscript tag, which should not be lazyloaded. We will give it a fix soon. Awesome thanks for keeping me updated. Ill keep an eye out for an update in the future Fixed and updated. Please try the latest dev branch. BTW, a quick note : As of today, if you roll back to lower versions from v3.7 dev latest, you may see a PHP fatal error notice. That is a known issue and wont cause any hurt. You just need to reactivate the cache plugin again as it will be auto deactivated during the switching process due to the fatal error. Remember to remove the exclude setting facebook when you try latest commit. Just tried the beta version ? v3.7-rc21 Removed the media Facebook and seems to be working fine Safe to keep that version running or should I switch back for now? Oh, I just updated my reply above. But for safe just put it here again : A quick note : As of today, if you roll back to lower versions from v3.7 dev latest, you may see a PHP fatal error notice. That is a known issue and wont cause any hurt. You just need to reactivate the cache plugin again as it will be auto deactivated during the switching process due to the fatal error. As a best practice, normally we do not recommend dev beta version for production site. But if it is not, we welcome you to test and enjoy. As its a live site Ive gone back to 3.6.3 for now and added back Facebook to the excludes section. As it works and then when I see it mentioned in the changelog about the no script Ill remove it from my side Thanks for all your help and quick fixes! You are very welcome



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference