Skip to content

Commit ceaee7a

Browse files
authored
Update best-practices-asset-management.md
1 parent d9de749 commit ceaee7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/best-practices-asset-management.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ This allows the entire class and application interact programmatically with the
2828
* **This is a global namespace**. Be creative, be courteous, be concise, be clear and be defensive.
2929
* **Please don't use a postfix like `-js`, `-css`, `-script`, `-style`** -- WordPress will add postfixes when printing assets in the DOM, resulting in `something-js-js`. However, if a product is called purecss or momentjs, we then use the full slug with repetitive postfix, despite repetion (i.e. `purecss-css`)
3030
* **Try to keep parity between filename and dependency string**. This makes life easier and applications scale nicer.
31-
* **Plan for growth: avoid calling dependency "my-product.ext."** Use `-primary`, `-core` or `-main` prefix.
31+
* **Plan for growth: avoid calling dependency `my-product`** Use `-primary`, `-core` or `-main` postfix.
3232
* **Never use WordPress Filters or difficult-to-predict dynamic variables** so others may dequeue and register handles with confidence.
3333

3434
#### Leverage dependency chaining and the `array()` method for `wp_enqueue_*()`

0 commit comments

Comments
 (0)