Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(328)

Issue 2003041: ImagePrefetchRewriter that prefetches images

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 5 months ago by gagan.goku
Modified:
15 years, 4 months ago
Reviewers:
Kuntal Loya, satya3656, cool-shindig-committers
Base URL:
http://svn.apache.org/repos/asf/shindig/trunk/
Visibility:
Public.

Description

This rewriter prefetches images referenced by <img> tags on the page being proxied / accelerated. Prefetching images can decrease the page load time of pages as there are lesser resources that get blocked on download while javascript gets downloaded / executed. Also, some of time taken to parse the html document is avoided.

Patch Set 1 #

Patch Set 2 : 'svn_up' #

Patch Set 3 : 'adding_ImagePreloadRewriter_as_an_accel_rewriter' #

Total comments: 13

Patch Set 4 : 'addressing_satyas_comments' #

Patch Set 5 : 'addressing_satyas_comments' #

Patch Set 6 : 'addressing_satyas_comments' #

Patch Set 7 : 'adding_missing_semicolon' #

Patch Set 8 : 'svn_up' #

Patch Set 9 : 'removing_Override' #

Patch Set 10 : 'reverting_default_proxy_uri_manager_test_file_which_seems_to_be_bad_currently' #

Patch Set 11 : renaming ImagePreload -> ImagePrefetch #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+185 lines, -8 lines) Patch
A java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/ImagePrefetchRewriter.java View 1 chunk +91 lines, -0 lines 0 comments Download
M java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/RewriteModule.java View 2 3 4 5 6 7 8 9 10 2 chunks +6 lines, -8 lines 1 comment Download
A java/gadgets/src/test/java/org/apache/shindig/gadgets/rewrite/ImagePrefetchRewriterTest.java View 1 chunk +88 lines, -0 lines 0 comments Download

Messages

Total messages: 11
gagan.goku
Please take a look.
15 years, 5 months ago (2010-08-22 11:40:51 UTC) #1
satya3656
http://codereview.appspot.com/2003041/diff/5001/6002 File java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/ImagePreloadVisitor.java (right): http://codereview.appspot.com/2003041/diff/5001/6002#newcode60 java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/ImagePreloadVisitor.java:60: StringBuilder content = new StringBuilder(); Add scoping to the ...
15 years, 4 months ago (2010-08-27 07:29:32 UTC) #2
gagan.goku
http://codereview.appspot.com/2003041/diff/5001/6002 File java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/ImagePreloadVisitor.java (right): http://codereview.appspot.com/2003041/diff/5001/6002#newcode60 java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/ImagePreloadVisitor.java:60: StringBuilder content = new StringBuilder(); On 2010/08/27 07:29:32, satya3656 ...
15 years, 4 months ago (2010-08-27 12:04:06 UTC) #3
satya3656
LGTM small thing, you missed one minor comment in the test http://codereview.appspot.com/2003041/diff/5001/6002 File java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/ImagePreloadVisitor.java (right): ...
15 years, 4 months ago (2010-08-27 12:36:35 UTC) #4
gagan.goku
http://codereview.appspot.com/2003041/diff/5001/6002 File java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/ImagePreloadVisitor.java (right): http://codereview.appspot.com/2003041/diff/5001/6002#newcode76 java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/ImagePreloadVisitor.java:76: content.append("var scripts = document.getElementsByTagName(\"script\");\n"); Added another test for empty ...
15 years, 4 months ago (2010-08-27 12:49:55 UTC) #5
satya3656
LGTM
15 years, 4 months ago (2010-08-27 13:41:27 UTC) #6
gagan.goku
Thanks Satya Gagan -- The only thing missing in life is background music. -- Gagandeep ...
15 years, 4 months ago (2010-08-27 15:39:33 UTC) #7
Kuntal Loya
Could you mention in the rewriter description the type of gain we are expecting from ...
15 years, 4 months ago (2010-08-30 12:42:49 UTC) #8
gagan.goku
On 2010/08/30 12:42:49, Kuntal Loya wrote: > Could you mention in the rewriter description the ...
15 years, 4 months ago (2010-08-30 15:25:18 UTC) #9
gagan.goku
15 years, 4 months ago (2010-09-07 01:36:33 UTC) #10
satya3656
15 years, 4 months ago (2010-09-08 10:53:29 UTC) #11
http://codereview.appspot.com/2003041/diff/32001/java/gadgets/src/main/java/o...
File
java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/RewriteModule.java
(right):

http://codereview.appspot.com/2003041/diff/32001/java/gadgets/src/main/java/o...
java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/RewriteModule.java:28:
import org.apache.shindig.gadgets.render.*;
Just import what you want, * is bad.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b