Inline

Inline scripts and style tags

Transparency policy

Pertains both to inline and external scripts:

In the latest versions, scripts are passed through on a 1:1 basis. That means, that they are hooked out of the target page and hooked back into the main page without modification. That way, you have maximum control but also complete responsibility. Nevertheless, Ajaxify still has a read-only peek into the script text, giving rise to the following hints:

Detailed description of inline-script hints

Interface

  • “inline” set to “true”: All inline scripts are re-fired, no matter what the contents of “inlinehints” is, but excluding those specified in “inlineskip”
  • “inline” set to “false”: No inline scripts are re-fired, except those with class=’ajaxy’ and those specified in “inlinehints” (see examples below):
  • “style” set to “true”: All new style tags are loaded
  • “style” set to “false”: All new style tags are ignored

Example hints for inline scripts with “inline” set to true

Multiple hints have to be separated by comma + space

inlineskip Scripts skipped
‘adsbygoogle’ All inline scripts containing the string ‘adsbygoogle’

Example hints for inline scripts with “inline” set to false

Multiple hints have to be separated by comma + space

inlinehints Scripts re-fired
‘SyntaxHighlighter’ All inline scripts containing the string ‘SyntaxHighlighter’
‘SyntaxHighlighter, WP_’ All inline scripts containing the string ‘SyntaxHighlighter’ or ‘WP_’

Avoiding unwanted recursion

Inline scripts that contain the string:
").ajaxify("are NOT fired on subsequent loads!

35 thoughts on “Inline”

Leave a Reply to Amit Cancel reply

Your email address will not be published. Required fields are marked *