Skip to content

u/rasterized

In this archive from Mar 2010 to May 2023

0
posts
321
comments
0
media
555
score

No, there's no downsides, when using them appropriately.

Most people were recommending resources or plugins to reduce file size, etc. but nobody mentioned vector images.

Vector files can't be computationally optimized it the same way as a raster image. It's just not possible, but it's rarely a concern because as most vector images are being used for line-art and icons and other stuff that overall isn't that complex or detailed, so the file is typically very small to begin with.

I thought using vector images was best practise for high-quality, low file size images.

It is where suitable. For example, a photorealistic, highly-detailed vector image could definitely perform a lot worse than a well-optimized jpeg.

6 points

Any thoughts on this issue?

You often see this when a function calls jQuery before it has loaded.

shouldn't I have access to jQuery on every page?

It should be enqueued to show on every page for most themes, but it's not a rule.

Does anyone make it standard practice to manually register jQuery when they intend to use jQuery calls?

Yes, my custom themes does this, where necessary. Really trying to abandon jQuery the last few years, but that's just my personal thing. My themes enqueue jQuery conditionally.

1 points

You're going to want to dive into the coding involved with theme and plugin development. Everything you're missing is there, and you don't have to be very fluent in PHP, but obviously it wouldn't hurt.

Also if you're not already familiar you're going to want to get to know a plugin called Advanced Custom Fields. It's very useful when adding custom functionality to Wordpress utilizing your own code as opposed to someone else's plugin.

5 points

customer who is a little weird.

Do you have a contract that says you can take down his site for non-payment?

I'm betting you don't, and if you do it without legally covering your ass you are begging for the client to take you to court. Is the site money worth the hassle?

In the end I think all you can do is remove your work and return the site to its prior state and if he has a backup you're probably out of luck.

5 points

Oh, totally agree. That's a shitty anti-pattern.

I've used it on sites so visitors can return to a page w/dynamic content and it'll retain filtered results or something, but it doesn't touch the browser history.

I've never used it on anchors like OP described that I can recall, but anchor links are as old as Mosaic, it's really not that different.

2 points

Not a dumb question, because with Wordpress it's kinda both a host and development platform (more specifically, a Content Management System).

Wordpress.com is a hosting service that provides hosting for Wordpress-based sites. If you just want a blog and nothing fancy, start there.

Wordpress.org is a site that provides Wordpress as a downloadable framework free to use on other hosts. This allows far greater customization and control.

2 points

And build a course website by hand?

Sure, but that's much harder. Unless you're talking about making just a single page to promote your course for now, that's totally feasible. You still need someone to host it though; there's no way to get around that cost.

1 points

From the HTML5 file you'll need to create Wordpress Theme file(s) from that. It takes some understanding of PHP and a lot of understanding of Wordpress to do that, so I would instead recommend looking into purchasing a Wordpress theme and using that instead.

Your alternative is to hire a developer who would create the theme for you, but that's rarely cost effective when you're starting out.

That would at least get you a website built, but you still need to host it. There's many options out there but I would suggest a cost-effective and fully managed service like WPEngine.

1 points

First I'd check if there's a redirect rule in the .htaccess file.

Next I would look to see if the site uses the Redirection plugin and if it does I'd remove it, at least temporarily.

There are also plugins that for security purposes allow you to redirect the login page. I'm not aware of any that would enable an offsite login but if there's a login-related plugin in the Plugins folder I'd remove that too.

There's other weird places a redirect might be hanging out, but those are the standard options.

3 points

The number of rows in a MySQL database has little impact on performance. Fact is, so long as rows are properly indexed (WP takes care of that for you) your db size really should have no impact on performance, even with tens of millions of records. There are exceptions for more complex queries, but for serving up content and attachments it is not intensive db work.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.