You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by bo...@apache.org on 2016/02/10 11:18:03 UTC
svn commit: r1729575 -
/myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/PageRenderer.java
Author: bommel
Date: Wed Feb 10 10:18:03 2016
New Revision: 1729575
URL: http://svn.apache.org/viewvc?rev=1729575&view=rev
Log:
(TOBAGO-1524)
defer attribute support for script
Modified:
myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/PageRenderer.java
Modified: myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/PageRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/PageRenderer.java?rev=1729575&r1=1729574&r2=1729575&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/PageRenderer.java (original)
+++ myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/PageRenderer.java Wed Feb 10 10:18:03 2016
@@ -467,8 +467,7 @@ public class PageRenderer extends Render
if (StringUtils.isNotBlank(src)) {
writer.startElement(HtmlElements.SCRIPT);
writer.writeAttribute(HtmlAttributes.SRC, src, true);
- // TODO test defer attribute
- //writer.writeAttribute(HtmlAttributes.DEFER, true);
+ writer.writeAttribute(HtmlAttributes.DEFER, true);
writer.writeAttribute(HtmlAttributes.TYPE, "text/javascript", false);
writer.endElement(HtmlElements.SCRIPT);
}