Skip to content

Commit

Permalink
By default images are now prerendered to serve request much faster
Browse files Browse the repository at this point in the history
  • Loading branch information
luca-vogels committed Jan 13, 2024
1 parent 7af306e commit d8be1ed
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion image/OptimizedImage.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ function OptimizedImage(props) {
var sources = [];
var w = width || 0;
while (w >= minWidth) {
console.log(w, ' -> ', w / scaleFactor, ' -> ', Math.round(w / scaleFactor)); // TODO REMOVE
var nextW = Math.round(w / scaleFactor);
var isLast = nextW < minWidth;
for (var _i = 0, fileExtensions_1 = fileExtensions; _i < fileExtensions_1.length; _i++) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lup-images",
"version": "1.2.0",
"version": "1.2.1",
"description": "Optimizes images for web applications",
"files": [
"image/**/*",
Expand Down
1 change: 0 additions & 1 deletion src/image/OptimizedImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ export function OptimizedImage(props: OptimizedImageProps){
const sources: React.ReactNode[] = [];
let w = width || 0;
while(w >= minWidth) {
console.log(w, ' -> ', w / scaleFactor, ' -> ', Math.round(w / scaleFactor)); // TODO REMOVE
const nextW = Math.round(w / scaleFactor);

const isLast = nextW < minWidth;
Expand Down

0 comments on commit d8be1ed

Please sign in to comment.