You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The example you have for pulling the style via AJAX may work in most cases, but to guarantee display of the correct style, the AJAX request should complete prior to initialising cy.js. For example, you may have a flash of unstyled content (http://en.wikipedia.org/wiki/Flash_of_unstyled_content), because your stylesheet can't override the default one until it's loaded.
Great library! We'll try to add native support for parsing string stylesheets, though we'll probably leave the AJAX request call itself to the dev's discretion for better control.
Excellent point about timing of the stylesheet loading.
Glad to hear you're open to native stylesheets. I think it eases the cognitive load on the dev to just "style with css" rather than "style with JSON/CSS hybrid", and to allow that style definition to be a standalone css file. This library was just a hack to make things easier on my brain :)
The example you have for pulling the style via AJAX may work in most cases, but to guarantee display of the correct style, the AJAX request should complete prior to initialising cy.js. For example, you may have a flash of unstyled content (http://en.wikipedia.org/wiki/Flash_of_unstyled_content), because your stylesheet can't override the default one until it's loaded.
Great library! We'll try to add native support for parsing string stylesheets, though we'll probably leave the AJAX request call itself to the dev's discretion for better control.
I've created a ticket for native support: cytoscape/cytoscape.js#396
The text was updated successfully, but these errors were encountered: