ernestobellei
Posts
-
Add page loaded flag -
Add page loaded flagHi @arminunruh and @mariusjopen,
Any chance to have this class implemented?
p.s. thanks for the shortcode fix :))Best,
Ernesto -
Shortcodes disappear after page resize -
Add page loaded flagHi, @arminunruh
Sorry for the delayed answer but I missed the notification :))
I wrote a marquee shortcode for WordPress and I would like to init it as soon as the DOM is loaded (even using Ajax). By now I’m using a mutation observer that listens on DOM add/change events and detect whether the shortcode HTML has been loaded, but checking for a class would be a lighter and cleaner solution.
Having a .loaded class (or data-attribute) would be useful to avoid double check for mobile and desktop layout gridder too.
Best,
Ernesto -
Shortcodes disappear after page resizeHi @mariusjopen
Ok, maybe I found something.
It works only if you don't have a custom phone layout :)I created 4 pages:
→ A page with a DEFAULT wordpress shortcode with a custom phone layout → DOESN'T WORK
→ A page with a DEFAULT wordpress shortcode without a custom phone layout → IT WORKS→ A page with a MY wordpress shortcode with a custom phone layout → DOESN'T WORK
→ A page with a MY wordpress shortcode without a custom phone layout → IT WORKSThe problem comes out only when a custom phone layout is active.
Best :)
Ernesto -
Shortcodes disappear after page resizeHI @mariusjopen,
do you mean the .zip file?
The problem can be recreated also using a wordpress default shortcode (I inserted a [video] inside the page I sent you).
Best,
Ernesto -
Shortcodes disappear after page resizeHi @mariusjopen
It happens also when changing from desktop to mobile.
case 1: loaded desktop version (it works) → then resize to mobile (it works) → then back again to desktop (stop working)
case 2: loaded mobile version (it works) → then resize to desktop (it works) → then back again to mobile (stop working)
I sent you a private message with a link to the page.
Best!
Ernesto
-
Shortcodes disappear after page resizeHi,
I have some shortcodes on my page which disappear on page resize. (In laytheme only. Gridder plugin is fine :)) )
It seems to be an error on shortcodes append because (as you can see in the linked video) the #lay-shortcode-container is empty after the first append.
Thank you in advance,
Ernesto Bellei -
Add page loaded flagHi,
It would be useful to have a flag (es a class / meta 'is-loaded') when ajax / DOM loading ends.
Thanks you,
Ernesto