Hey there,

I'm using Dialog API to load a dialog modal. When the modal opens, the rest of the page reverts to an older cached version of the my CSS. It causes the page to load the same file twice, with the one loaded when the modal opens (which is the older cached version) to override. I'm not sure what's going on, but for now I've patched dialog.js to not load the xLazyLoader settings.

Cheers,
Rocket

CommentFileSizeAuthor
dialogjs.patch410 bytesdrupal_was_my_past

Comments

tribsel’s picture

in my case only some elements are changed, they use css from drupal theme - 7, not my custom theme...

funature’s picture

i have the same problem like @tribsel

goron’s picture

I'm experiencing this too. Seems to be what is referred to here:

/**
 * Implement hook_ajax_render_alter().
 *
 * Using the xLazyLoader library and command, load additional css and
 * javascript into the page.
 *
 * TODO: Deal with overloading one theme's css onto another.
 */
function dialog_ajax_render_alter(&$commands) {
...
goron’s picture

- accidental double post -

wesnick’s picture

Please verify that this occurs only when your are aggregating JS. I think this is a duplicate of #1032038: JS and CSS can be overloaded when aggregation is turned on.

drclaw’s picture

Status: Active » Closed (duplicate)

Possibly also related to #1994676: Dialog content rendered in inproper way. This issue is almost definitely a duplicate... I'm marking it.