Home

Issue: 2513

Event before resources. DOMContentLoaded ?

[issue link]

Hi!

I want to adjust images setting on the client side. I cannot do it on server side because I do not know client screen resolution.

The problem is that both mounted() and window.onNuxtReady are triggered after all resources were loaded. Which is too late for me.

I guess I should use DOMContentLoaded but I am not sure how to do this with nuxt.

I need to tweak the images styles before the images are loaded to avoid content shifting on devices with slow connection.

Any suggestions? Thanks!

This question is available on Nuxt.js community (#c2183)