conditionally enqueuing scripts and styles
-
Hi
Before i installed AO i enqueued scripts and styles for wp-mediaelements conditionally, just for the few posts where i needed them (audio mainly). Now, since i have AO installed, i observe a strange behaviour.
Sometimes the medieplayer is not styled correctly and the bars are over a 1000 pixels wide. After a refresh everything is back to normal.
I omitted all conditions for the scripts and styles and since then the behaviour is good again, but of course the AO pack gets heavier.Is conditionally loading ok with AO, or am i doing something wrong with enqueuing my scripts and styles?
Thanks a lot for your time and interest.
regards
theo
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘conditionally enqueuing scripts and styles’ is closed to new replies.