Avatar of APD Toronto
APD Toronto
Flag for Canada asked on

On Load function does not trigger on iPhone

Hi Experts,

When you open http://aces-project.com/2017/_NEW.php on iPhone portrait you will notice that the slogan "We Dont Overpromise. We Deliver!" is very small, but when you change it to landscape then back to portrait is fine. This is triggered by sloganResize() within js/header.js which I am calling from both $(window).resize() and $(window).on('load'), but the onload call is doesn't seem to be triggered?

Any help will be greatly appreciated.
iPhoneJavaScriptjQuery

Avatar of undefined
Last Comment
APD Toronto

8/22/2022 - Mon
Shaun Vermaak

When you say iPhone, do you mean Safari browser on iPhone or which browser(s)?
APD Toronto

ASKER
iPhone 6 Plus, both Safari and Chrome
ASKER CERTIFIED SOLUTION
Rob

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
APD Toronto

ASKER
I changed to the pageshow event, and the slogan disappeared.

Please see original link
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes