Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | |
| 3 | namespace Automattic\Jetpack\WP_JS_Data_Sync\Contracts; |
| 4 | |
| 5 | use Automattic\Jetpack\WP_JS_Data_Sync\Data_Sync; |
| 6 | |
| 7 | interface Lazy_Entry { |
| 8 | /** |
| 9 | * "Look pal, I'm so lazy I can't even finish this sente.." - Lazy Entry |
| 10 | * |
| 11 | * Entries can tag themselves as "lazy" by implementing this interface. |
| 12 | * By tagging an entry as "lazy" it won't be loaded with `wp_localize_script`. |
| 13 | * |
| 14 | * This is useful when you want DataSync, but getting the data is going |
| 15 | * to slow down the admin dashboard page load. |
| 16 | * For example - uncached network requests. |
| 17 | * |
| 18 | * @see Data_Sync::_print_options_script_tag() |
| 19 | */ |
| 20 | } |