Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

only firing on some elements, not all - but all on resize #172

Open
nandoblanco opened this issue Apr 20, 2018 · 4 comments
Open

only firing on some elements, not all - but all on resize #172

nandoblanco opened this issue Apr 20, 2018 · 4 comments
Labels

Comments

@nandoblanco
Copy link

I have about 45 instances of the sameheight class but some are ignored, most of the time. Sometimes everything works as it should but most times the first 23 run, the next 10 don't and then the other 12 do... It works fine if I resize the window.

I tried to recreate the issue as best as possible on the jsfiddles below.

The 10 instances that don't run can be found in tab 2: People With Images and People With Images (3)

It's not waiting for the image to load since the image is set as a bg.

The really weird thing, when I minify the html it seems to work fine...

https://jsfiddle.net/nando99/hgszusvh/ - non minified html

https://jsfiddle.net/nando99/fsmj2php/ - minified html

I've been pulling my hair with this for a couple days, anyone have any ideas?

thanks in advance!

@liabru
Copy link
Owner

liabru commented Apr 25, 2018

Is this still an issue? Not sure I can see the problem. My first guess would be that your html is broken (e.g. missing tags) and the minifier somehow fixes it for you?

@nandoblanco
Copy link
Author

yes, still an issue :(

really dont think its the minifier but will double check

@nandoblanco
Copy link
Author

and it the minifier was fixing the html, why would it work on resize... def not the minifier but again, I'll double check

@nandoblanco
Copy link
Author

checked on the w3 validator, no issues...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants