wp-shortcake / shortcake

Shortcake makes using WordPress shortcodes a piece of cake.
GNU General Public License v2.0
664 stars 142 forks source link

Add additional attributes to the ajax `do_shortcode` response #372

Open goldenapples opened 9 years ago

goldenapples commented 9 years ago

We could add a way for shortcodes to return some attributes like suggested dimensions, float value, or basic css styles, along with the shortcode markup.

This would involve a few steps:

mkeppel commented 9 years ago

This morning we got a report of slow List content type that is heavy with Post element gifs.

Convo with Dodai: https://fusionnetwork.slack.com/archives/edit-tech/p1435842468002515

Granted this post will have 50+ list items each with a gif in them but the editor is experiencing extremely slow scrolling speeds on the page. Just noting here so that we can have this tracked I have not gotten many requests of slow WP editor experiences but will keep an ear out for them now.

@goldenapples and I chatted about the situation and potentials for improvements in slack here: https://fusionnetwork.slack.com/archives/tech/p1435842625005052

goldenapples commented 9 years ago

It strikes me that this would be a way of solving several rendering-related issues, including #407 and #372.