• Resolved brbrbr

    (@brbrbr)


    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

    (@westonruter)

    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

    Thread Starter brbrbr

    (@brbrbr)

    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.