<p>I ran into this issue too and had landed on this thread (and another similar one). I was able to piece together a solution using the modify elements query method. I wrote a pull request that got merged, so lazy-loading works with this plugin as of version 1.1.4.</p>

CC BY-SA 3.0
2017-10-01T03:40:20.867Z
2017-10-01T03:40:20.867Z
Aaron Waldon
<p>After some research I found out that this problem has no simple solution (unfortunately). Check <a href="https://github.com/smcyr/Craft-FocusPoint/issues/10" rel="nofollow noreferrer">https://github.com/smcyr/Craft-FocusPoint/issues/10</a>.</p>

<p>A solution would be not to use eager loading (obvious). Another solution could be using Craft3 (no plugin needed).</p>

<p>The solution I used was Focal Point (<a href="https://github.com/aelvan/FocalPointField-Craft" rel="nofollow noreferrer">https://github.com/aelvan/FocalPointField-Craft</a>). Focal Point is a tool that can be used with Eager Loading. Focal Point creates a focus point on every asset, that means not on every asset field.</p>

CC BY-SA 3.0
2017-07-10T13:49:18.420Z
2017-07-10T13:49:18.420Z
Mr. Sam
<p>I'm using eager loading for retrieving some images for my gallery:</p>

<pre><code>{% set employments = craft.entries({ section: 'employments', with: ['photo] }) %}
</code></pre>

<p>This works fine and I can see all images on my page.</p>

<p>I'm using focuspoint (<a href="https://github.com/smcyr/Craft-FocusPoint" rel="nofollow noreferrer">https://github.com/smcyr/Craft-FocusPoint</a>) with imager for resizing the images. I've set a different focuspoint for every image.
But whenever I try to get the focuspoints of a image:
<code>photo[0].focusPctX</code>, all images have the same focuspoints (50).</p>

<p>Whenever I try to retrieve the images without the eager loading function, it works fine.</p>

<p>I've created a new issue @focuspoint github.</p>

<p>Is there someone that had the same problem, or has a solution for this?</p>

CC BY-SA 3.0
2017-07-09T16:21:53.853Z
same issue here. Did you ever resolve this?
mention79
CC BY-SA 3.0
2017-07-10T13:49:50.620Z
Created a answer for you ;)
Mr. Sam
CC BY-SA 3.0
2017-07-10T14:02:13.650Z
thanks, I'll have a look at the other focalpoint plugin then, as use it on every image. So definitely need it.
mention79
<image-transforms><image><eager-loading><plugin-imager><plugin-focuspoint>
Using Focuspoint with eager loading
# Using Focuspoint with eager loading

(Asked by: username_0 on 2017-01-20)

I'm using eager loading for retrieving some images for my gallery:
{% set employments = craft.entries({ section: 'employments', with: ['photo] }) %}

This works fine and I can see all images on my page.
I'm using focuspoint (https://github.com/smcyr/Craft-FocusPoint) with imager for resizing the images. I've set a different focuspoint for every image.
But whenever I try to get the focuspoints of a image:
photo[0].focusPctX, all images have the same focuspoints (50).
Whenever I try to retrieve the images without the eager loading function, it works fine.
I've created a new issue @focuspoint github.
Is there someone that had the same problem, or has a solution for this?

**Tags:** image-transforms, image, eager-loading, plugin-imager, plugin-focuspoint
> **Comments:**
> **username_1**: same issue here. Did you ever resolve this?  
> **username_0**: Created a answer for you ;)  
> **username_1**: thanks, I'll have a look at the other focalpoint plugin then, as use it on every image. So definitely need it.  

---

## 2 answers

### Answer by username_2 on 2017-10-01. Score: 2 | Accepted answer

I ran into this issue too and had landed on this thread (and another similar one). I was able to piece together a solution using the modify elements query method. I wrote a pull request that got merged, so lazy-loading works with this plugin as of version 1.1.4.


---

### Answer by username_0 on 2017-07-10. Score: 4

After some research I found out that this problem has no simple solution (unfortunately). Check <https://github.com/smcyr/Craft-FocusPoint/issues/10>.

A solution would be not to use eager loading (obvious). Another solution could be using Craft3 (no plugin needed).

The solution I used was Focal Point (<https://github.com/aelvan/FocalPointField-Craft>). Focal Point is a tool that can be used with Eager Loading. Focal Point creates a focus point on every asset, that means not on every asset field.


---

