Title: Generic .no classes
Last modified: May 20, 2024

---

# Generic .no classes

 *  Resolved [brbrbr](https://wordpress.org/support/users/brbrbr/)
 * (@brbrbr)
 * [2 years ago](https://wordpress.org/support/topic/generic-no-classes/)
 * In the current rules the plugin adds a rule when the mode is prerender:
 * ‘selector_matches’ => ‘.no-prerender’,
 * wouldn’t it make sence to make this more generic? Like :
 * array(
   ‘not’ => array(‘selector_matches’ => [“a[rel=nofollow]”,”.no-$mode”,”.
   no-speculation”]),),

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [2 years ago](https://wordpress.org/support/topic/generic-no-classes/#post-17768826)
 * In general, prerendering can be the more problematic mode if there is JavaScript
   on the page which isn’t aware of the prerendered state. For example, it could
   inadvertently track a page view even if the user never went to the page. This
   is why there is a specific class for disabling prerendering. More rationale is
   in [https://github.com/WordPress/performance/issues/906](https://github.com/WordPress/performance/issues/906)
 *  Thread Starter [brbrbr](https://wordpress.org/support/users/brbrbr/)
 * (@brbrbr)
 * [2 years ago](https://wordpress.org/support/topic/generic-no-classes/#post-17769418)
 * fair enough,
 * would be quite impossible to include all eccentric needs into a single plugin.
   The api is quite a beast of possibilities.
 * The fix in rel=nofollow solved my actual problem as well.
 * regards

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Generic .no classes’ is closed to new replies.

 * ![](https://ps.w.org/speculation-rules/assets/icon.svg?rev=3098224)
 * [Speculative Loading](https://wordpress.org/plugins/speculation-rules/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/speculation-rules/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/speculation-rules/)
 * [Active Topics](https://wordpress.org/support/plugin/speculation-rules/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/speculation-rules/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/speculation-rules/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [brbrbr](https://wordpress.org/support/users/brbrbr/)
 * Last activity: [2 years ago](https://wordpress.org/support/topic/generic-no-classes/#post-17769418)
 * Status: resolved