├── .gitattributes ├── .gitignore ├── rposbo.lazyload.web.sln └── rposbo.lazyload.web ├── App_Start └── RouteConfig.cs ├── Content └── img │ ├── amazon.jpg │ ├── bizarnage.jpg │ ├── catsai.jpg │ ├── dark-claw.jpg │ ├── dr-strangefate.jpg │ ├── hawkeye.jpg │ ├── iron-lantern.jpg │ ├── mercury.jpg │ ├── moonwing.jpg │ ├── spider-boy.jpg │ └── super-soldier.jpg ├── Controllers └── ListingController.cs ├── Data └── ListingData.cs ├── Global.asax ├── Global.asax.cs ├── Models ├── ListingItem.cs └── ListingViewModel.cs ├── Properties └── AssemblyInfo.cs ├── Scripts └── laziness.js ├── Views ├── Listing │ ├── Flat.cshtml │ └── Index.cshtml └── web.config ├── Web.Debug.config ├── Web.Release.config ├── Web.config ├── packages.config └── rposbo.lazyload.web.csproj /.gitattributes: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Set default behavior to automatically normalize line endings. 3 | ############################################################################### 4 | * text=auto 5 | 6 | ############################################################################### 7 | # Set default behavior for command prompt diff. 8 | # 9 | # This is need for earlier builds of msysgit that does not have it on by 10 | # default for csharp files. 11 | # Note: This is only used by command line 12 | ############################################################################### 13 | #*.cs diff=csharp 14 | 15 | ############################################################################### 16 | # Set the merge driver for project and solution files 17 | # 18 | # Merging from the command prompt will add diff markers to the files if there 19 | # are conflicts (Merging from VS is not affected by the settings below, in VS 20 | # the diff markers are never inserted). Diff markers may cause the following 21 | # file extensions to fail to load in VS. An alternative would be to treat 22 | # these files as binary and thus will always conflict and require user 23 | # intervention with every merge. To do so, just uncomment the entries below 24 | ############################################################################### 25 | #*.sln merge=binary 26 | #*.csproj merge=binary 27 | #*.vbproj merge=binary 28 | #*.vcxproj merge=binary 29 | #*.vcproj merge=binary 30 | #*.dbproj merge=binary 31 | #*.fsproj merge=binary 32 | #*.lsproj merge=binary 33 | #*.wixproj merge=binary 34 | #*.modelproj merge=binary 35 | #*.sqlproj merge=binary 36 | #*.wwaproj merge=binary 37 | 38 | ############################################################################### 39 | # behavior for image files 40 | # 41 | # image files are treated as binary by default. 42 | ############################################################################### 43 | #*.jpg binary 44 | #*.png binary 45 | #*.gif binary 46 | 47 | ############################################################################### 48 | # diff behavior for common document formats 49 | # 50 | # Convert binary document formats to text before diffing them. This feature 51 | # is only available from the command line. Turn it on by uncommenting the 52 | # entries below. 53 | ############################################################################### 54 | #*.doc diff=astextplain 55 | #*.DOC diff=astextplain 56 | #*.docx diff=astextplain 57 | #*.DOCX diff=astextplain 58 | #*.dot diff=astextplain 59 | #*.DOT diff=astextplain 60 | #*.pdf diff=astextplain 61 | #*.PDF diff=astextplain 62 | #*.rtf diff=astextplain 63 | #*.RTF diff=astextplain 64 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | 4 | # User-specific files 5 | *.suo 6 | *.user 7 | *.userosscache 8 | *.sln.docstates 9 | 10 | # User-specific files (MonoDevelop/Xamarin Studio) 11 | *.userprefs 12 | 13 | # Build results 14 | [Dd]ebug/ 15 | [Dd]ebugPublic/ 16 | [Rr]elease/ 17 | [Rr]eleases/ 18 | x64/ 19 | x86/ 20 | build/ 21 | bld/ 22 | [Bb]in/ 23 | [Oo]bj/ 24 | 25 | # Visual Studio 2015 cache/options directory 26 | .vs/ 27 | 28 | # MSTest test Results 29 | [Tt]est[Rr]esult*/ 30 | [Bb]uild[Ll]og.* 31 | 32 | # NUNIT 33 | *.VisualState.xml 34 | TestResult.xml 35 | 36 | # Build Results of an ATL Project 37 | [Dd]ebugPS/ 38 | [Rr]eleasePS/ 39 | dlldata.c 40 | 41 | # DNX 42 | project.lock.json 43 | artifacts/ 44 | 45 | *_i.c 46 | *_p.c 47 | *_i.h 48 | *.ilk 49 | *.meta 50 | *.obj 51 | *.pch 52 | *.pdb 53 | *.pgc 54 | *.pgd 55 | *.rsp 56 | *.sbr 57 | *.tlb 58 | *.tli 59 | *.tlh 60 | *.tmp 61 | *.tmp_proj 62 | *.log 63 | *.vspscc 64 | *.vssscc 65 | .builds 66 | *.pidb 67 | *.svclog 68 | *.scc 69 | 70 | # Chutzpah Test files 71 | _Chutzpah* 72 | 73 | # Visual C++ cache files 74 | ipch/ 75 | *.aps 76 | *.ncb 77 | *.opensdf 78 | *.sdf 79 | *.cachefile 80 | 81 | # Visual Studio profiler 82 | *.psess 83 | *.vsp 84 | *.vspx 85 | 86 | # TFS 2012 Local Workspace 87 | $tf/ 88 | 89 | # Guidance Automation Toolkit 90 | *.gpState 91 | 92 | # ReSharper is a .NET coding add-in 93 | _ReSharper*/ 94 | *.[Rr]e[Ss]harper 95 | *.DotSettings.user 96 | 97 | # JustCode is a .NET coding add-in 98 | .JustCode 99 | 100 | # TeamCity is a build add-in 101 | _TeamCity* 102 | 103 | # DotCover is a Code Coverage Tool 104 | *.dotCover 105 | 106 | # NCrunch 107 | _NCrunch_* 108 | .*crunch*.local.xml 109 | 110 | # MightyMoose 111 | *.mm.* 112 | AutoTest.Net/ 113 | 114 | # Web workbench (sass) 115 | .sass-cache/ 116 | 117 | # Installshield output folder 118 | [Ee]xpress/ 119 | 120 | # DocProject is a documentation generator add-in 121 | DocProject/buildhelp/ 122 | DocProject/Help/*.HxT 123 | DocProject/Help/*.HxC 124 | DocProject/Help/*.hhc 125 | DocProject/Help/*.hhk 126 | DocProject/Help/*.hhp 127 | DocProject/Help/Html2 128 | DocProject/Help/html 129 | 130 | # Click-Once directory 131 | publish/ 132 | 133 | # Publish Web Output 134 | *.[Pp]ublish.xml 135 | *.azurePubxml 136 | ## TODO: Comment the next line if you want to checkin your 137 | ## web deploy settings but do note that will include unencrypted 138 | ## passwords 139 | #*.pubxml 140 | 141 | *.publishproj 142 | 143 | # NuGet Packages 144 | *.nupkg 145 | # The packages folder can be ignored because of Package Restore 146 | **/packages/* 147 | # except build/, which is used as an MSBuild target. 148 | !**/packages/build/ 149 | # Uncomment if necessary however generally it will be regenerated when needed 150 | #!**/packages/repositories.config 151 | 152 | # Windows Azure Build Output 153 | csx/ 154 | *.build.csdef 155 | 156 | # Windows Store app package directory 157 | AppPackages/ 158 | 159 | # Visual Studio cache files 160 | # files ending in .cache can be ignored 161 | *.[Cc]ache 162 | # but keep track of directories ending in .cache 163 | !*.[Cc]ache/ 164 | 165 | # Others 166 | ClientBin/ 167 | [Ss]tyle[Cc]op.* 168 | ~$* 169 | *~ 170 | *.dbmdl 171 | *.dbproj.schemaview 172 | *.pfx 173 | *.publishsettings 174 | node_modules/ 175 | orleans.codegen.cs 176 | 177 | # RIA/Silverlight projects 178 | Generated_Code/ 179 | 180 | # Backup & report files from converting an old project file 181 | # to a newer Visual Studio version. Backup files are not needed, 182 | # because we have git ;-) 183 | _UpgradeReport_Files/ 184 | Backup*/ 185 | UpgradeLog*.XML 186 | UpgradeLog*.htm 187 | 188 | # SQL Server files 189 | *.mdf 190 | *.ldf 191 | 192 | # Business Intelligence projects 193 | *.rdl.data 194 | *.bim.layout 195 | *.bim_*.settings 196 | 197 | # Microsoft Fakes 198 | FakesAssemblies/ 199 | 200 | # Node.js Tools for Visual Studio 201 | .ntvs_analysis.dat 202 | 203 | # Visual Studio 6 build log 204 | *.plg 205 | 206 | # Visual Studio 6 workspace options file 207 | *.opt 208 | 209 | # LightSwitch generated files 210 | GeneratedArtifacts/ 211 | _Pvt_Extensions/ 212 | ModelManifest.xml 213 | -------------------------------------------------------------------------------- /rposbo.lazyload.web.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 14 4 | VisualStudioVersion = 14.0.23107.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "rposbo.lazyload.web", "rposbo.lazyload.web\rposbo.lazyload.web.csproj", "{FF657857-AC58-4CBC-A600-3C043868A71E}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {FF657857-AC58-4CBC-A600-3C043868A71E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {FF657857-AC58-4CBC-A600-3C043868A71E}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {FF657857-AC58-4CBC-A600-3C043868A71E}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {FF657857-AC58-4CBC-A600-3C043868A71E}.Release|Any CPU.Build.0 = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /rposbo.lazyload.web/App_Start/RouteConfig.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.Mvc; 6 | using System.Web.Routing; 7 | 8 | namespace rposbo.lazyload.web 9 | { 10 | public class RouteConfig 11 | { 12 | public static void RegisterRoutes(RouteCollection routes) 13 | { 14 | routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); 15 | 16 | routes.MapRoute( 17 | name: "Default", 18 | url: "{controller}/{action}/{id}", 19 | defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional } 20 | ); 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /rposbo.lazyload.web/Content/img/amazon.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rposbo/lazyloadimages/e0bb72898abf472a42c93e8e491f10fea584ee7c/rposbo.lazyload.web/Content/img/amazon.jpg -------------------------------------------------------------------------------- /rposbo.lazyload.web/Content/img/bizarnage.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rposbo/lazyloadimages/e0bb72898abf472a42c93e8e491f10fea584ee7c/rposbo.lazyload.web/Content/img/bizarnage.jpg -------------------------------------------------------------------------------- /rposbo.lazyload.web/Content/img/catsai.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rposbo/lazyloadimages/e0bb72898abf472a42c93e8e491f10fea584ee7c/rposbo.lazyload.web/Content/img/catsai.jpg -------------------------------------------------------------------------------- /rposbo.lazyload.web/Content/img/dark-claw.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rposbo/lazyloadimages/e0bb72898abf472a42c93e8e491f10fea584ee7c/rposbo.lazyload.web/Content/img/dark-claw.jpg -------------------------------------------------------------------------------- /rposbo.lazyload.web/Content/img/dr-strangefate.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rposbo/lazyloadimages/e0bb72898abf472a42c93e8e491f10fea584ee7c/rposbo.lazyload.web/Content/img/dr-strangefate.jpg -------------------------------------------------------------------------------- /rposbo.lazyload.web/Content/img/hawkeye.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rposbo/lazyloadimages/e0bb72898abf472a42c93e8e491f10fea584ee7c/rposbo.lazyload.web/Content/img/hawkeye.jpg -------------------------------------------------------------------------------- /rposbo.lazyload.web/Content/img/iron-lantern.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rposbo/lazyloadimages/e0bb72898abf472a42c93e8e491f10fea584ee7c/rposbo.lazyload.web/Content/img/iron-lantern.jpg -------------------------------------------------------------------------------- /rposbo.lazyload.web/Content/img/mercury.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rposbo/lazyloadimages/e0bb72898abf472a42c93e8e491f10fea584ee7c/rposbo.lazyload.web/Content/img/mercury.jpg -------------------------------------------------------------------------------- /rposbo.lazyload.web/Content/img/moonwing.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rposbo/lazyloadimages/e0bb72898abf472a42c93e8e491f10fea584ee7c/rposbo.lazyload.web/Content/img/moonwing.jpg -------------------------------------------------------------------------------- /rposbo.lazyload.web/Content/img/spider-boy.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rposbo/lazyloadimages/e0bb72898abf472a42c93e8e491f10fea584ee7c/rposbo.lazyload.web/Content/img/spider-boy.jpg -------------------------------------------------------------------------------- /rposbo.lazyload.web/Content/img/super-soldier.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rposbo/lazyloadimages/e0bb72898abf472a42c93e8e491f10fea584ee7c/rposbo.lazyload.web/Content/img/super-soldier.jpg -------------------------------------------------------------------------------- /rposbo.lazyload.web/Controllers/ListingController.cs: -------------------------------------------------------------------------------- 1 | using rposbo.lazyload.web.Data; 2 | using rposbo.lazyload.web.Models; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Web.Mvc; 6 | 7 | namespace rposbo.lazyload.web.Controllers 8 | { 9 | public class ListingController : Controller 10 | { 11 | private List _allItems; 12 | private ListingData _db; 13 | 14 | public ListingController() 15 | { 16 | _db = new ListingData(); 17 | _allItems = _db.Load(); 18 | } 19 | 20 | public ActionResult Index() 21 | { 22 | var aboveTheFoldCount = 6; 23 | 24 | var aboveTheFold = _allItems.Take(aboveTheFoldCount); 25 | var belowTheFold = _allItems.Skip(aboveTheFoldCount); 26 | 27 | return View( 28 | new ListingViewModel 29 | { 30 | Above = aboveTheFold.ToList(), 31 | Below = belowTheFold.ToList(), 32 | FlatLink = "Index", 33 | Title = "Amalgam Characters" 34 | } 35 | ); 36 | } 37 | 38 | public ActionResult Flat() 39 | { 40 | return View( 41 | new ListingViewModel 42 | { 43 | All = _allItems.ToList(), 44 | Title = "Amalgam Characters" 45 | } 46 | ); 47 | } 48 | 49 | } 50 | } -------------------------------------------------------------------------------- /rposbo.lazyload.web/Data/ListingData.cs: -------------------------------------------------------------------------------- 1 | using rposbo.lazyload.web.Models; 2 | using System.Collections.Generic; 3 | 4 | namespace rposbo.lazyload.web.Data 5 | { 6 | public class ListingData 7 | { 8 | public List Load() 9 | { 10 | return new List{ 11 | new ListingItem { 12 | Title = "Dark Claw", 13 | ImageUrl = @"\Content\img\dark-claw.jpg" 14 | }, 15 | new ListingItem { 16 | Title = "Super Soldier", 17 | ImageUrl = @"\Content\img\super-soldier.jpg" 18 | }, 19 | new ListingItem { 20 | Title = "Iron Lantern", 21 | ImageUrl = @"\Content\img\iron-lantern.jpg" 22 | }, 23 | new ListingItem { 24 | Title = "Spider Boy", 25 | ImageUrl = @"\Content\img\spider-boy.jpg" 26 | }, 27 | new ListingItem { 28 | Title = "Amazon", 29 | ImageUrl = @"\Content\img\amazon.jpg" 30 | }, 31 | new ListingItem { 32 | Title = "Bizarnage", 33 | ImageUrl = @"\Content\img\bizarnage.jpg" 34 | }, 35 | new ListingItem { 36 | Title = "Catsai", 37 | ImageUrl = @"\Content\img\catsai.jpg" 38 | }, 39 | new ListingItem { 40 | Title = "Moonwing", 41 | ImageUrl = @"\Content\img\moonwing.jpg" 42 | }, 43 | new ListingItem { 44 | Title = "Hawkeye", 45 | ImageUrl = @"\Content\img\hawkeye.jpg" 46 | }, 47 | new ListingItem { 48 | Title = "Mercury", 49 | ImageUrl = @"\Content\img\mercury.jpg" 50 | }, 51 | new ListingItem { 52 | Title = "Dr Strangefate", 53 | ImageUrl = @"\Content\img\dr-strangefate.jpg" 54 | } 55 | }; 56 | } 57 | } 58 | } -------------------------------------------------------------------------------- /rposbo.lazyload.web/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="rposbo.lazyload.web.MvcApplication" Language="C#" %> 2 | -------------------------------------------------------------------------------- /rposbo.lazyload.web/Global.asax.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.Mvc; 6 | using System.Web.Routing; 7 | 8 | namespace rposbo.lazyload.web 9 | { 10 | public class MvcApplication : System.Web.HttpApplication 11 | { 12 | protected void Application_Start() 13 | { 14 | AreaRegistration.RegisterAllAreas(); 15 | RouteConfig.RegisterRoutes(RouteTable.Routes); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /rposbo.lazyload.web/Models/ListingItem.cs: -------------------------------------------------------------------------------- 1 | namespace rposbo.lazyload.web.Models 2 | { 3 | public class ListingItem 4 | { 5 | public string Title { get; set; } 6 | public string ImageUrl { get; set; } 7 | } 8 | } -------------------------------------------------------------------------------- /rposbo.lazyload.web/Models/ListingViewModel.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace rposbo.lazyload.web.Models 4 | { 5 | public class ListingViewModel 6 | { 7 | public List Above { get; set; } 8 | public List Below { get; set; } 9 | public List All { get; set; } 10 | public string FlatLink { get; set; } 11 | public string Title { get; set; } 12 | } 13 | } -------------------------------------------------------------------------------- /rposbo.lazyload.web/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("rposbo.lazyload.web")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("rposbo.lazyload.web")] 13 | [assembly: AssemblyCopyright("Copyright © 2016")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("ff657857-ac58-4cbc-a600-3c043868a71e")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Revision and Build Numbers 33 | // by using the '*' as shown below: 34 | [assembly: AssemblyVersion("1.0.0.0")] 35 | [assembly: AssemblyFileVersion("1.0.0.0")] 36 | -------------------------------------------------------------------------------- /rposbo.lazyload.web/Scripts/laziness.js: -------------------------------------------------------------------------------- 1 | var laziness = (function () { 2 | var lazy = []; 3 | 4 | registerListener('load', setLazy); 5 | registerListener('load', lazyLoad); 6 | registerListener('scroll', lazyLoad); 7 | registerListener('resize', lazyLoad); 8 | 9 | function setLazy() { 10 | document.getElementById('listing').removeChild(document.getElementById('viewMore')); 11 | document.getElementById('nextPage').setAttribute('class', 'next-show'); 12 | 13 | lazy = document.getElementsByClassName('lazy'); 14 | console.log('Found ' + lazy.length + ' lazy images'); 15 | } 16 | 17 | function lazyLoad() { 18 | for (var i = 0; i < lazy.length; i++) { 19 | if (isInViewport(lazy[i])) { 20 | if (lazy[i].getAttribute('data-src')) { 21 | lazy[i].src = lazy[i].getAttribute('data-src'); 22 | lazy[i].removeAttribute('data-src'); 23 | } 24 | } 25 | } 26 | 27 | cleanLazy(); 28 | } 29 | 30 | function cleanLazy() { 31 | lazy = Array.prototype.filter.call(lazy, function (l) { return l.getAttribute('data-src'); }); 32 | } 33 | 34 | function isInViewport(el) { 35 | var rect = el.getBoundingClientRect(); 36 | 37 | return ( 38 | rect.bottom >= 0 && 39 | rect.right >= 0 && 40 | rect.top <= (window.innerHeight || document.documentElement.clientHeight) && 41 | rect.left <= (window.innerWidth || document.documentElement.clientWidth) 42 | ); 43 | } 44 | 45 | function registerListener(event, func) { 46 | if (window.addEventListener) { 47 | window.addEventListener(event, func) 48 | } else { 49 | window.attachEvent('on' + event, func) 50 | } 51 | } 52 | })(); -------------------------------------------------------------------------------- /rposbo.lazyload.web/Views/Listing/Flat.cshtml: -------------------------------------------------------------------------------- 1 | @model rposbo.lazyload.web.Models.ListingViewModel 2 | @{ 3 | Layout = null; 4 | } 5 | 6 | 7 | 8 | 9 | 10 | 11 | Flat Listing 12 | 24 | 25 | 26 |

@Model.Title

27 |
28 | 29 | @for (var i =0; i< Model.All.Count; i++) 30 | { 31 |
32 | 33 | @Model.All[i].Title 36 | @Model.All[i].Title 37 |
38 | } 39 | 40 |
41 | 42 | 43 | -------------------------------------------------------------------------------- /rposbo.lazyload.web/Views/Listing/Index.cshtml: -------------------------------------------------------------------------------- 1 | @model rposbo.lazyload.web.Models.ListingViewModel 2 | @{ 3 | Layout = null; 4 | } 5 | 6 | 7 | 8 | 9 | 10 | 11 | Lazy Listing 12 | 33 | 34 | 35 |

@Model.Title

36 |
37 | 38 | 39 | @foreach (var a in Model.Above) 40 | { 41 |
42 | @a.Title 45 | @a.Title 46 |
47 | } 48 | 49 |
50 | 51 | @Html.ActionLink("View more", Model.FlatLink, "Listing", null, null, Model.Above.Count.ToString(), null, null) 52 |
53 | 54 | 55 | 56 |
57 | @foreach (var b in Model.Below) 58 | { 59 |
60 | @b.Title 65 | 70 | @b.Title 71 |
72 | } 73 |
74 |
75 | 76 | 77 | 78 | -------------------------------------------------------------------------------- /rposbo.lazyload.web/Views/web.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 |
7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /rposbo.lazyload.web/Web.Debug.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 17 | 18 | 29 | 30 | -------------------------------------------------------------------------------- /rposbo.lazyload.web/Web.Release.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 17 | 18 | 19 | 30 | 31 | -------------------------------------------------------------------------------- /rposbo.lazyload.web/Web.config: -------------------------------------------------------------------------------- 1 |  2 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 38 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /rposbo.lazyload.web/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /rposbo.lazyload.web/rposbo.lazyload.web.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | Debug 8 | AnyCPU 9 | 10 | 11 | 2.0 12 | {FF657857-AC58-4CBC-A600-3C043868A71E} 13 | {349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc} 14 | Library 15 | Properties 16 | rposbo.lazyload.web 17 | rposbo.lazyload.web 18 | v4.5.2 19 | true 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | true 30 | full 31 | false 32 | bin\ 33 | DEBUG;TRACE 34 | prompt 35 | 4 36 | 37 | 38 | pdbonly 39 | true 40 | bin\ 41 | TRACE 42 | prompt 43 | 4 44 | 45 | 46 | 47 | ..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.0\lib\net45\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll 48 | True 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | ..\packages\Microsoft.AspNet.Razor.3.2.3\lib\net45\System.Web.Razor.dll 71 | 72 | 73 | ..\packages\Microsoft.AspNet.Webpages.3.2.3\lib\net45\System.Web.Webpages.dll 74 | 75 | 76 | ..\packages\Microsoft.AspNet.Webpages.3.2.3\lib\net45\System.Web.Webpages.Deployment.dll 77 | 78 | 79 | ..\packages\Microsoft.AspNet.Webpages.3.2.3\lib\net45\System.Web.Webpages.Razor.dll 80 | 81 | 82 | ..\packages\Microsoft.AspNet.Webpages.3.2.3\lib\net45\System.Web.Helpers.dll 83 | 84 | 85 | ..\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll 86 | 87 | 88 | ..\packages\Microsoft.AspNet.Mvc.5.2.3\lib\net45\System.Web.Mvc.dll 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | Global.asax 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | Web.config 125 | 126 | 127 | Web.config 128 | 129 | 130 | 131 | 132 | 133 | 134 | 10.0 135 | $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | True 145 | True 146 | 51878 147 | / 148 | http://localhost:51878/ 149 | False 150 | False 151 | 152 | 153 | False 154 | 155 | 156 | 157 | 158 | 159 | 160 | This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. 161 | 162 | 163 | 164 | 165 | 172 | --------------------------------------------------------------------------------